This documentation is archived and is not being maintained.

FormsAuthenticationTicket Constructor (String, Boolean, Int32)

.NET Framework 1.1

Initializes a new instance of the FormsAuthenticationTicket class using a cookie name and expiration information.

[Visual Basic]
Public Sub New( _
   ByVal name As String, _
   ByVal isPersistent As Boolean, _
   ByVal timeout As Integer _
public FormsAuthenticationTicket(
   string name,
 bool isPersistent,
 int timeout
public: FormsAuthenticationTicket(
   String* name,
 bool isPersistent,
 int timeout
public function FormsAuthenticationTicket(
   name : String,
 isPersistent : Boolean,
 timeout : int


User name associated with the ticket.
true if the cookie is persistent, otherwise, false.
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.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

FormsAuthenticationTicket Class | FormsAuthenticationTicket Members | System.Web.Security Namespace | FormsAuthenticationTicket Constructor Overload List