System.Web.Security Namespace FormsAuthentication Class
Conditionally updates the sliding expiration on a FormsAuthenticationTicket.
[ VB ] Public Shared Function RenewTicketIfOld ( _ tOld As FormsAuthenticationTicket _ ) As FormsAuthenticationTicket [ C# ] public static FormsAuthenticationTicket RenewTicketIfOld ( FormsAuthenticationTicket tOld ); [ C++ ] public: static FormsAuthenticationTicket* RenewTicketIfOld ( FormsAuthenticationTicket* tOld ); [ JScript ] public static function RenewTicketIfOld ( tOld : FormsAuthenticationTicket ) : FormsAuthenticationTicket;
The updated FormsAuthenticationTicket.
The ticket is updated with the IssueDate set to the current time and the expiration based on the difference between the previous expiration time and issue time. The ticket will be updated if the current date and time minus IssueDate ) is greater than IssueDate ) minus the current date and time.
FormsAuthentication Members
© 2000-2010 Rey Nuñez All rights reserved.If you have any question, comment or suggestion about this site, please send us a note
You can help support asp.net.ph