TAstaServerSocket.OnClientDBLogin


 

Applies to
TAstaServerSocket

 

Declaration
type TAstaDBLoginEvent = procedure(Sender: TObject;
  TheUserName, ThePassword, TheAppName:
string;
  
var Verified: Boolean; var ADataBase: TComponent) of object;

property OnClientDBLogin: TAstaLoginEvent;

 

Description
OnClientDBLogin is implemented when you want to have your remote users use their database use rname and password or to have them to have access to a different server database, and is used primarily with the
PersistentSession threading model. For normal logins use the OnClientLogin. If you want to validate IP addresses before the login use OnClientValidate.

Note: The Verified parameter returns the results of the attempt to the client. If you verification attempt succeeds then set Verified to True, if it fails, set Verified to False. If you want the client to be automatically disconnected then set DisconnectClientOnFailedLogin to True in which case nothing will be returned to the client but they will be immediately disconnected from the server.

 

ASTA Server Login



ASTA Overview TAstaServerSocket.OnClientConnect TAstaServerSocket.OnCodedParamList