Editare

Partajați prin


LocalServiceSecuritySettings.IssuedCookieLifetime Property

Definition

Gets or sets the lifetime for the SecurityContextSecurityToken that the service issues for the client.

public:
 property TimeSpan IssuedCookieLifetime { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan IssuedCookieLifetime { get; set; }
member this.IssuedCookieLifetime : TimeSpan with get, set
Public Property IssuedCookieLifetime As TimeSpan

Property Value

A TimeSpan that represents the lifetime for new security cookies. The default is 10 hours.

Exceptions

The property is set to a value less than 0.

Examples

This example shows how to get the IssuedCookieLifetime value.

TimeSpan issuedCookieLifetime = settings.IssuedCookieLifetime;
Dim issuedCookieLifetime As TimeSpan = settings.IssuedCookieLifetime

Remarks

When the service issues secure conversation cookie tokens to the client, their validity period is determined by the value of this property.

Applies to