asp.net.ph

FormsAuthenticationTicket Constructor ( String, Boolean, Int32 )

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
);

Parameters

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.

Remarks

The default settings include version number, dates that are set to the current date, and expiration as determined by the durability setting.

See Also

FormsAuthenticationTicket Members   FormsAuthenticationTicket Constructor Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph