FormsAuthentication.RedirectToLoginPage Method (String)
Redirects the browser to the login URL with the specified query string.
Assembly: System.Web (in System.Web.dll)
The SignOut method to log one user out and allow a different user to log in.method does not clear the forms-authentication cookie. You can use the method in conjunction with the
Legacy Code Example
The following code example clears the forms-authentication cookie using the SignOut method and redirects the user to the login page using the method.Code snippet is not found. Confirm that the code snippet name 'System.Web.Security.FormsAuthentication' is correct.
Available since 2.0