Class SessionHandlingOptions
Provides options for configuring session context behavior.
Namespace: Singulink.Net.Http.Api.Service
Assembly: Singulink.Net.Http.Api.Service.dll
Syntax
public sealed class SessionHandlingOptions
Properties
| Name | Description |
|---|---|
| CookieDomain | Gets or sets the domain that the session cookie applies to. Leave null (the default) to scope the cookie to the host that issued
it. Set to a parent domain (e.g. |
| CookiePath | Gets or sets the path that the session cookie applies to. Default is |
| ForcedAccessOptions | Gets or sets the forced session access options that are applied to all session token retrievals. Default is None. |
| MultipleRefreshGracePeriod | Gets or sets the grace period during which a session token from the previous generation is still accepted from the same device. This allows concurrent requests (or connections that were established with the previous token) that have not yet received the updated token cookie to continue without invalidating the session. The grace period timer starts when the response carrying the refreshed token is sent to the client (i.e. when the session store is updated with the new generation). Default is 2 minutes. |
| PersistentSessionExpiry | Gets or sets the expiry duration for persistent sessions. Default is 30 days. |
| SessionCookieName | Gets or sets the name of the cookie that holds the encrypted session token. Default is |
| TempSessionExpiry | Gets or sets the expiry duration for temporary (non-persistent) sessions. Default is 1 day. |
| UserIdPreconditionQueryName | Gets or sets the query parameter name for the user ID precondition. Default is |