FormsAuthenticationTicket.IsPersistent Property
.NET Framework 2.0
Gets a value indicating whether the cookie that contains the forms-authentication ticket information is persistent.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following code example displays the property values of the FormsAuthenticationTicket for the current logged-on user.
Note: |
|---|
|
If there is no logged-on user, the Identity property will be a null reference (Nothing in Visual Basic) and you will receive a compiler exception when attempting to cast the Identity property as a FormsIdentity object. |
Community Additions
ADD
Show:
Note: