Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/xserver/src/session.ts>default#expiration

X-Server a Deno server module with middleware
Go to Latest
method default.prototype.expiration
import { default } from "https://deno.land/x/xserver@5.2.2/src/session.ts";

The number of milliseconds the session/cookie is valid default is 1 day or 24 hours.

Parameters

expiration: number

Returns

Session