Property RefreshAfter
RefreshAfter
Gets or sets how long a session cookie is used before the session is validated against the session store and refreshed. Default is 10 minutes.
Declaration
public TimeSpan RefreshAfter { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Remarks
A cookie whose validity period is shorter, which it is near the end of a maximum session lifetime, is validated when its validity period ends.
A request notices changes in the session store, such as an ended session, when it validates the session, so up to this long after the change unless it forces validation (see ForceValidate).
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | The value is zero or negative. |