KeyworkSession
Overview
Usage
- Node
- Deno
import { KeyworkSession } from 'keywork/middleware/classes'
import { KeyworkSession } from 'https://deno.land/x/keywork/middleware/classes'
Properties
isNewSession
isNewSession: `boolean`
true
if this session has just been created.
false
if the Request
included a session cookie.
Defined in
middleware/classes/SessionMiddleware.ts:71
sessionID
sessionID: `string`
The user's current session ID, derived from the Request
cookie header.
Defined in
middleware/classes/SessionMiddleware.ts:65
A simple session manager to aid in authenticating users.