WebSecurity Property - IsAuthenticated
The IsAuthenticated property is a boolean value that indicates whether the current user is authenticated (logged in).
The property value is a boolean true if the current user is authenticated, otherwise false.
C# and VB Syntax
The IsAuthenticated property is read only. It cannot be changed by code.
Errors and Exceptions
Any access to the WebSecurity object throws an InvalidOperationException if:
- The InitializeDatabaseConnection() method has not been called
- SimpleMembership is not initialized (or disabled in the website configuration)
Thank You For Helping Us!
Your message has been sent to W3Schools.