Setu-TS
    Preparing search index...

    Interface SessionCookieOptions

    Cookie attributes for the session cookie.

    Defaults are the secure ones (AI_GUIDELINES §13.4): HttpOnly, Secure, and SameSite=Lax. secure: false is the documented escape hatch for plain-HTTP local development.

    0.2.0

    interface SessionCookieOptions {
        domain?: string;
        httpOnly?: boolean;
        name?: string;
        path?: string;
        sameSite?: "none" | "strict" | "lax";
        secure?: boolean | "auto";
    }
    Index
    domain?: string

    Domain scope. Omitted by default, producing a host-only cookie.

    httpOnly?: boolean

    HttpOnly attribute. Default true.

    name?: string

    Cookie name. Default 'setu_session'.

    path?: string

    Path scope. Default '/'.

    sameSite?: "none" | "strict" | "lax"

    SameSite policy. Default 'lax'.

    secure?: boolean | "auto"

    Secure attribute. Default true; 'auto' follows the trusted request protocol.