WebSecurity Object
The Logout() method logs out the current user.
None.
None.
Any access to the WebSecurity object throws an InvalidOperationException if:
When a user is logged in, ASP.NET sets an authentication token in a cookie that lets ASP.NET know on subsequent requests that the user has been logged in.
The Logout() method removes the authentication token, which has the effect of logging the user out.
| Name | Value |
|---|---|
| Namespace | WebMatrix.WebData |
| Assembly | WebMatrix.WebData.dll |
WebSecurity Object
Your message has been sent to W3Schools.