Skip to main content
Module

x/alosaur/src/security/session/src/session.interface.ts>SessionOptions

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
interface SessionOptions
import { type SessionOptions } from "https://deno.land/x/alosaur@v0.35.2/src/security/session/src/session.interface.ts";

Properties

secret:
| Uint8Array
| bigint
| number
| string

Security key for sign hash *

optional
name: string

Key for save in cookie default 'sid' *

optional
expires: Date

Expiration date of the cookie.

optional
maxAge: number

Max-Age of the session Cookie. Must be integer superior to 0.

optional
domain: string

Specifies those hosts to which the cookie will be sent.

optional
path: string

Indicates a URL path that must exist in the request.

optional
secure: boolean

Indicates if the cookie is made using SSL & HTTPS.

optional
httpOnly: boolean

Indicates that cookie is not accessible via JavaScript. *

optional
sameSite: "Strict" | "Lax" | "None"

Allows servers to assert that a cookie ought not to be sent along with cross-site requests.