SessionSecurityToken.IsPersistent Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a value that indicates whether the cookie represented by this token is persistent.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public bool IsPersistent { get; set; }

Property Value

Type: System.Boolean

true if the cookie is persistent; otherwise, false.

If the IsPersistent property is true, the cookie is written as a persistent cookie. Persistent cookies remain valid after the browser is closed until they expire.

.NET Framework
Available since 4.5
Return to top