Session manager.

Hierarchy

  • ScriptSessionManager

Properties

sessionId: string

Returns

the ID of the current session.

Methods

  • Get a value from the current session.

    Parameters

    • key: null | string

    Returns JsonType

  • Returns

    the ID of the current session.

    Returns string

  • Put a value into the current session.

    Parameters

    Returns void

  • Put a value into the specified session.

    Notice that sessions are isolated by plugin group, so it's not possible to share a session value between plugins unless both plugins belong to the same plugin group.

    Parameters

    • sessionId: null | string
    • key: null | string
    • value: JsonType

    Returns void

  • Remove a value from the given session.

    Returns

    the current value associated with the given key.

    Parameters

    • key: null | string

    Returns JsonType