Flex client applications can set user's userid and password using
the setCredentials method
available in the RemoteObject class:
public function setCredentials( userid:String, password:String ) : void
The method sends credentials to the server to perform
authentication of the user's identity. Once authenticated, all subsequent
invocations use the user identity. To remove credentials and thus log out the
user, use the logout(
) method available in the RemoteObject class:
public function logout() : void
It is important to keep in mind that the credentials are
applied to all services connected over the same ChannelSet.