aspxtreme

FormsAuthenticationTicket.Expiration Property

System.Web.Security Namespace   FormsAuthenticationTicket Class


Gets the date/time at which the cookie expires.

[ VB ]
Public ReadOnly Property Expiration As DateTime

[ C# ]
Public DateTime Expiration {get;}

[ C++ ]
public: __property DateTime get_Expiration ( );

[ JScript ]
public Serializable
function get Expiration ( ) : DateTime;

Property Value

The date/time at which the cookie expires.

Remarks

For durable cookies, this should be the maximum value. For session-scoped cookies, this should be set to the time the cookie was issued. This can be used by custom application logic to implement more-advanced expiration semantics.

See Also

FormsAuthenticationTicket Members



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 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 aspxtreme