Documentation / @blazetrails/actionpack / Session / SessionObject
Variable: SessionObject
constSessionObject: {commitSession:Promise<unknown>;isLoadedSession:boolean;prepareSession:Promise<Session>; }
Defined in: packages/actionpack/lib/action-dispatch/middleware/session/abstract-store.ts:108
Type Declaration
commitSession()
commitSession(
this,req,res):Promise<unknown>
Parameters
| Parameter | Type |
|---|---|
this | Persisted |
req | any |
res | any |
Returns
Promise<unknown>
isLoadedSession()
isLoadedSession(
this,session):boolean
Parameters
| Parameter | Type |
|---|---|
this | unknown |
session | unknown |
Returns
boolean
prepareSession()
prepareSession(
this,req):Promise<Session>
Parameters
| Parameter | Type |
|---|---|
this | Persisted |
req | Request |
Returns
Promise<Session>