Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.