FormsAuthentication::RedirectToLoginPage Method (String^)
.NET Framework (current version)
Redirects the browser to the login URL with the specified query string.
Assembly: System.Web (in System.Web.dll)
Parameters
- extraQueryString
-
Type:
System::String^
The query string to include with the redirect URL.
The RedirectToLoginPage method redirects the browser to the LoginUrl and includes the extraQueryString value as the QueryString for the redirected URL.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: