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.
![]()
An System.Web.HttpCookie that contains encrypted forms-authentication ticket information. The default value for the FormsAuthentication.FormsCookiePath property is used.
The path of the cookie is determined by the FormsAuthentication.FormsCookiePath property.