Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FormsAuthentication.GetAuthCookie Method

Creates an authentication cookie for a given user name.

Overload List

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.

[Visual Basic] Overloads Public Shared Function GetAuthCookie(String, Boolean) As HttpCookie
[C#] public static HttpCookie GetAuthCookie(string, bool);
[C++] public: static HttpCookie* GetAuthCookie(String*, bool);
[JScript] public static function GetAuthCookie(String, Boolean) : HttpCookie;

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.

[Visual Basic] Overloads Public Shared Function GetAuthCookie(String, Boolean, String) As HttpCookie
[C#] public static HttpCookie GetAuthCookie(string, bool, string);
[C++] public: static HttpCookie* GetAuthCookie(String*, bool, String*);
[JScript] public static function GetAuthCookie(String, Boolean, String) : HttpCookie;

See Also

FormsAuthentication Class | FormsAuthentication Members | System.Web.Security Namespace

Show:
© 2015 Microsoft