asp.net.ph

FormsAuthenticationTicket Constructor ( Int32, String, DateTime, DateTime, Boolean, String )

System.Web.Security Namespace   FormsAuthenticationTicket Class


Creates a FormsAuthenticationTicket instance with explicit values.

[ VB ]
Public Sub New ( _
   version As Integer, _
   name As String, _
   issueDate As DateTime, _
   expiration As DateTime, _
   isPersistent As Boolean, _
   userData As String _
)

[ C# ]
Public FormsAuthenticationTicket (
   int version,
   string name,
   DateTime issueDate,
   DateTime expiration,
   bool isPersistent,
   string userData
);

[ C++ ]
public: FormsAuthenticationTicket (
   int version,
   String* name,
   DateTime issueDate,
   DateTime expiration,
   bool isPersistent,
   String* userData
);

[ JScript ]
public Serializable
function FormsAuthenticationTicket (
   version : int,
   name : String,
   issueDate : DateTime,
   expiration : DateTime,
   isPersistent : Boolean,
   userData : String
);

Parameters

version
The version number.
name
User name associated with the ticket.
issueDate
Time at which the cookie was issued.
expiration
Expiration date for the cookie.
isPersistent
true if the cookie is persistent.
userData
User-defined data to be stored in the cookie.
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