Session Module

import session from 'session';

When a request session is available for the current original principal, developers
can store session variables that remain available until the sign-in session ends.

Methods

get(path)
set(path, value)

get(path)

Get a session variable

Arguments

  • path (String) dot syntax path to the a value in the session object.

Returns

Object

set(path, value)

Set a session variable

Arguments

  • path (String) dot syntax path to the a value in the session object.
  • value (Any) the value to set. passing null deletes the value.