FormsAuthentication.Encrypt Method (FormsAuthenticationTicket)
Creates a string containing an encrypted forms-authentication ticket suitable for use in an HTTP cookie.
Assembly: System.Web (in System.Web.dll)
Return ValueType: System.String
A string containing an encrypted forms-authentication ticket.
This example contains a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview.
Available since 1.1