Επεξεργασία

Κοινή χρήση μέσω


LocalServiceSecuritySettings.MaxCachedCookies Property

Definition

Gets or sets the maximum number of SecurityContextSecurityTokens that the service allows to cache at once.

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

Property Value

The maximum number of secure conversation cookies that can be cached by the service. When this limit is reached the service removes the oldest cached secure conversation cookies to make room for new secure conversation cookies. The default is 1000.

Exceptions

The property is set to a value less than 0.

Examples

This example shows how to get the MaxCachedCookies value.

int maxCachedCookies = settings.MaxCachedCookies;
Dim maxCachedCookies = settings.MaxCachedCookies

Applies to