Gets the authentication status of the current user.
Public Shared ReadOnly Property IsAuthenticated As Boolean
Dim value As Boolean
value = WebSecurity.IsAuthenticated
The following example shows how to use the IsAuthenticated method to verify that the current user is authenticated.
// If this page is accessed before the user logs in, notify the user.
<p>You must first log in to access the rest of this page.</p>
<p>Click <a href="WebSecurityLogin.cshtml">here</a> to log in.</p>