System.Web.Security.Roles.CookieSlidingExpiration Property

Indicates whether the role names cookie expiration date and time will be reset periodically.

Syntax

public static bool CookieSlidingExpiration { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can specify whether role names cookie expiration date and time will be reset with each response by using the cookieSlidingExpiration attribute in the Web.config file for your ASP.NET application. If true, the cookie expiration will initially be set to the current date and time plus the Roles.CookieTimeout in minutes. While the user continues to actively use the ASP.NET application, the expiration date and time of the cookie will be automatically refreshed if there is less than half of the Roles.CookieTimeout remaining. For more information, see the System.Web.HttpCookie.Expires property.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0