System.Web.Security.Roles.CookieTimeout Property

Gets the number of minutes before the roles cookie expires.

Syntax

public static int CookieTimeout { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Roles.CookieTimeout property is used when the Roles.CookieSlidingExpiration property is true and specifies the time-to-live in minutes for the roles cookie. To set the Roles.CookieTimeout value, add the cookieTimeout attribute to the roleManager element in the Web.config file for the ASP.NET application and specify an integer value.

If Roles.CookieSlidingExpiration is false, this property is ignored.

Requirements

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