SessionManager

SessionManager

new SessionManager()

Description:
  • Handles SessionContext

Source:

Methods

(static) get(name, contextopt) → {string|undefined}

Description:
  • Gets session property

Source:
Parameters:
Name Type Attributes Default Description
name string

The property name.

context string <optional>
eSwatSessionContext

Represents the session context where the property will be searched (e.g eSessionContext, eSwatSessionContext).
If not specified, default is eSwatSessionContext

Returns:

Returns the session property value

Type
string | undefined

(static) set(name, value, contextopt)

Description:
  • Sets session property

Source:
Parameters:
Name Type Attributes Default Description
name string

The property name.

value string | integer | boolean

The property new value.

context string <optional>
eSwatSessionContext

Represents the session context where the property will be set (e.g eSessionContext, eSwatSessionContext).
If not specified, default is eSwatSessionContext