Export (0) Print
Expand All
1 out of 3 rated this helpful - Rate this topic

FormsAuthentication.RenewTicketIfOld Method

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)
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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.