The AfterSuccessfulLogin event is executed on the Login page after the username and password were successfully verified.
a user-entered login name. In case of 'Login as Guest' situation $username will be empty.
a user-entered password.
an array with existing user record in the Login table. Access fields by $data["FieldName"].
In case of Active Directory based security, the data array contains attributes from the user record in AD. For instance, this is how you can retrieve the user's email and store it in a session variable:
Applies to pages
Recommended sample events: