Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/workers_middleware/index.ts>CookieSessionOptions

Placeholder for Worker-based middleware solution
Latest
interface CookieSessionOptions
import { type CookieSessionOptions } from "https://deno.land/x/workers_middleware@v0.1.0-pre.36/index.ts";

Type Parameters

optional
S extends Rec = Rec

Properties

optional
cookieName: string

The name of the session cookie. Defaults to sid.

optional
expirationTtl: number

Session expiration time in seconds. Defaults to five minutes.

optional
defaultSession: S

Provide a record that serves as the default session object. Also used for type inference.