Skip to main content

CookieSessionParameters

@webda/core


Class: CookieSessionParameters

Defined in: packages/core/src/session/manager.model.ts:90

Parameters for the cookie-based session manager

Extends​

Constructors​

Constructor​

new CookieSessionParameters(): CookieSessionParameters

Returns​

CookieSessionParameters

Inherited from​

ServiceParameters.constructor

Properties​

optional cookie?: CookieOptions

Defined in: packages/core/src/session/manager.model.ts:98

Cookie configuration for session


jwt?​

optional jwt?: JWTOptions

Defined in: packages/core/src/session/manager.model.ts:94

Options for issue JWT token


type​

type: string

Defined in: packages/core/src/services/serviceparameters.ts:10

Type of the service

Inherited from​

ServiceParameters.type

Methods​

load()​

load(params?): this

Defined in: packages/core/src/session/manager.model.ts:105

Load parameters and initialize cookie options

Parameters​

params?​

any = {}

the service parameters

Returns​

this

this for chaining

Overrides​

ServiceParameters.load


update()​

update(params?, delta): this

Defined in: packages/core/src/services/serviceparameters.ts:35

Update parameters and call watchers if a parameter was changed

Parameters​

params?​

any = {}

the service parameters

delta​

any

the delta

Returns​

this

this for chaining

Inherited from​

ServiceParameters.update


with()​

with(callback): this

Defined in: packages/core/src/services/serviceparameters.ts:65

Watch for changes on the parameters and call watchers when a parameter is changed

Parameters​

callback​

(params) => void

the callback function

Returns​

this

this for chaining

Inherited from​

ServiceParameters.with