FormsAuthentication.RenewTicketIfOld Method
.NET Framework 2.0
Conditionally updates the issue date and time and expiration date and time for a FormsAuthenticationTicket.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: static FormsAuthenticationTicket^ RenewTicketIfOld ( FormsAuthenticationTicket^ tOld )
public static FormsAuthenticationTicket RenewTicketIfOld ( FormsAuthenticationTicket tOld )
public static function RenewTicketIfOld ( tOld : FormsAuthenticationTicket ) : FormsAuthenticationTicket
Not applicable.
Parameters
- tOld
The forms-authentication ticket to update.
Return Value
The updated FormsAuthenticationTicket.The RenewTicketIfOld method updates the expiration date and time of the supplied FormsAuthenticationTicket if the current date and time minus the IssueDate value is greater than the Expiration value minus the current date and time.
The ticket is updated with the IssueDate property set to the current date and time and the Expiration property set to the current date and time plus the original Expiration value minus the original IssueDate value.
Community Additions
ADD
Show: