Using client-connect/client-disconnect scripts