Home
Library
Learn
Downloads
Support
Community
Forums
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.Web.Security Namespace
FormsAuthentication Class
FormsAuthentication Methods
GetAuthCookie Method
GetAuthCookie Method (String, Boolean)
GetAuthCookie Method (String, Boolean, String)
Related Links
Authenticate Method
Decrypt Method
Encrypt Method
GetRedirectUrl Method
HashPasswordForStoringInConfigFile Method
Initialize Method
RedirectFromLoginPage Method
RedirectToLoginPage Method
RenewTicketIfOld Method
SetAuthCookie Method
SignOut Method
FormsAuthentication
.
.
::
.
GetAuthCookie Method
This page is specific to:
.NET Framework Version:
1.1
2.0
3.0
3.5
4.0
.NET Framework Class Library
FormsAuthentication
.
.
::
.
GetAuthCookie Method
Creates an authentication cookie for a given user name.
Overload List
Name
Description
GetAuthCookie(String, Boolean)
Creates an authentication cookie for a given user name. This does not set the cookie as part of the outgoing response, so that an application can have more control over how the cookie is issued.
GetAuthCookie(String, Boolean, String)
Creates an authentication cookie for a given user name. This does not set the cookie as part of the outgoing response.
Top
See Also
Reference
FormsAuthentication Class
FormsAuthentication Members
System.Web.Security Namespace
Other Resources
ASP.NET Web Application Security
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Yes
No
Do you like the tabbed code blocks?
Yes
No
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
x
Classic
Lightweight Beta
ScriptFree
Switch View