Logout (WebSecurity Ref)
Simply put, thisĀ logs a user out, and obviously the user needs to be authenticated before logging out. It takes no arguments.
Example
@{ WebSecurity.RequireAuthenticatedUser(); WebSecurity.Logout(); Response.Redirect("~/"); }