System.Web.Security Namespace FormsAuthenticationTicket Class
Creates a FormsAuthenticationTicket instance with the specified name and cookie durability, and default values for the other settings ( version set internally, dates set to current date, and expiration determined on durability of cookie ) .
[ VB ]
Public Sub New ( _
name As String, _
isPersistent As Boolean, _
timeout As Integer _
)
[ C# ]
Public FormsAuthenticationTicket (
string name,
bool isPersistent,
int timeout
);
[ C++ ]
public: FormsAuthenticationTicket (
String* name,
bool isPersistent,
int timeout
);
[ JScript ]
public Serializable
function FormsAuthenticationTicket (
name : String,
isPersistent : Boolean,
timeout : int
);
- name
- User name associated with the ticket.
- isPersistent
- If true, use a persistent cookie.
- timeout
- Specifies the time in minutes ( as an integer ) for which the authentication ticket is valid.
The default settings include version number, dates that are set to the current date, and expiration as determined by the durability setting.
FormsAuthenticationTicket Members FormsAuthenticationTicket Constructor Overload List