|
www.astatech.com |
![]() |
![]() |
|
|||||||||||||||||||||
|
Managing the Login Process
ASTA provides facilities to help you manage the client login process. The Client's AutoLoginDlg property is the key to the login process. The AutoLoginDlg can be set to one of three selections:
No matter which option is selected, the AstaClientSocket's UserName, Password and ApplicationName are transmitted to the Server (if ltLoginDlg is selected, the UserName and Password properties are set to the input values entered by the user, then transmitted). If ltLoginDlg or ltLoginNoDlg have been selected, then you must code the AstaServerSocket's OnClientLogin event.
procedure TForm1.AstaServerSocket1ClientLogin(Sender: TObject; UserName, If verified is set to True, then the client will be connected to the server. Whether verified is set to True or False, that result will be transmitted back to the client. Whether or not you code the AstaClientSocket's OnLoginAttempt event handler will dictate what happens next. If you do not code the event handler and then the client will either continue normally if the result was true, or terminate immediately if it is false. If you would like to take other action -- possibly allow the user three login attempts before terminating the application, or perhaps showing a menu only after the user has been verified, then you can code the OnLoginAttempt event.
procedure TForm1.AstaClientSocket1LoginAttempt(Sender: TObject; * the AutoLoginDlg's property is set to ltLoginDlg If you wish to track the users that have been logged into the server, assign a TCheckListBox to the AstaServerSocket's UserCheckList property. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Last modified: 5/5/2002 7:31:59 AM |
||
| Copyright © 2001-2002 |
|