Sessionize

This handler (com.rierino.handler.SessionEventHandler) provides ability to create and track sessions for system users, as part of Gateway functionality.

Handler Parameters

Parameter
Definition
Example
Default

store.state

Name of state manager to store session details

session

-

init.stream

Name of stream to forward session initializations as triggers (optional)

session_init

-

Strategy for selecting session id when stitching sessions (self, old, new or existing)

old

existing

ttl

Milliseconds of inactivity to expire a session

900000

60000

Actions

Touch

Initializes or extends an existing session for the given origin and returns that session's id and expiration time:

Field
Definition
Example
Default

outputElement

Json path for the output in response event payload

session

-

With event metadata parameters as:

Parameter
Definition
Example
Default

ttl

JMESPath pattern to apply on data output, before returning response

{id:id, name:data.name, description:data.description}

Handler's ttl

Extend

Extends an existing session for the given origin and returns that session's new expiration time:

Field
Definition
Example
Default

outputElement

Json path for the output in response event payload

session

-

With event metadata parameters as:

Parameter
Definition
Example
Default

ttl

JMESPath pattern to apply on data output, before returning response

{id:id, name:data.name, description:data.description}

Handler's ttl

ExtendList

Extends a list of existing sessions for the given origin keys and returns their new expiration time:

Field
Definition
Example
Default

inputElement

Json path for the list of session keys in event payload

list

-

outputElement

Json path for the output in response event payload

session

-

With event metadata parameters as:

Parameter
Definition
Example
Default

ttl

JMESPath pattern to apply on data output, before returning response

{id:id, name:data.name, description:data.description}

Handler's ttl

Expire

Expires an existing session for the given origin.

Stitch

Stitches an existing session (identified by "oldId" and "oldType" in origin parameters) with a new origin (using stitchPriority strategy) and returns the final session's id and expiration time:

Field
Definition
Example
Default

outputElement

Json path for the output in response event payload

session

-

With event metadata parameters as:

Parameter
Definition
Example
Default

ttl

JMESPath pattern to apply on data output, before returning response

{id:id, name:data.name, description:data.description}

Handler's ttl

Last updated