Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

FormsAuthentication.RedirectToLoginPage Method

Redirects the browser to the login URL.
Name Description
FormsAuthentication.RedirectToLoginPage ()
Redirects the browser to the login URL.
FormsAuthentication.RedirectToLoginPage (String)
Redirects the browser to the login URL with the specified query string.

The RedirectToLoginPage method redirects the browser to the LoginUrl.

The RedirectToLoginPage method does not clear the forms-authentication cookie. You can use the RedirectToLoginPage method in conjunction with the SignOut method to log one user out and allow a different user to log in.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.