asp.net.ph

FormsAuthentication.RenewTicketIfOld Method

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;

Parameters

tOld
Authentication ticket.

Return Value

The updated FormsAuthenticationTicket.

Remarks

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.

See Also

FormsAuthentication Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 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