System.Web.Security.FormsAuthenticationTicket.UserData Property

Gets a user-specific string stored with the ticket.

Syntax

public string UserData { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the System.Web.Security.FormsAuthenticationTicket is created using a constructor that does not supply a userData parameter, the FormsAuthenticationTicket.UserData property returns an empty string (""); otherwise, the version property returns the value supplied to the System.Web.Security.FormsAuthenticationTicket constructor.

You can use the FormsAuthenticationTicket.UserData property to store additional user information with the System.Web.Security.FormsAuthenticationTicket that is not maintained by the System.Web.Security.FormsAuthenticationTicket property values.

Note:

You should limit the amount of data stored in the FormsAuthenticationTicket.UserData property. You must ensure that the size of the FormsAuthenticationTicket.UserData property does not result in an invalid cookie or an excessively long URL.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0