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
);
- 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.
FormsAuthenticationTicket Members FormsAuthenticationTicket Constructor Overload List