System.Web.UI.WebControls.Login.LoggedIn Event

Occurs when the user logs in to the Web site and has been authenticated.

Syntax

public event EventHandler LoggedIn

Remarks

The Login.LoggedIn event is raised after the authentication provider checks the user's credentials and the authentication cookie is queued to send to the browser in the next response. Use the Login.LoggedIn event to provide additional processing, such as accessing per-user data, after the user is authenticated.

When a user submits his or her login information, the System.Web.UI.WebControls.Login control first raises the Login.LoggingIn event, then the Login.Authenticate event, and finally the Login.LoggedIn event.

Note:

When a user uses the System.Web.UI.WebControls.Login control to log in to a Web site, all data in the view state and all post data is lost. Do not perform actions in the Login.LoggedIn event that rely on the view state.

For more information about handling events, see Handling and Raising Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0