Search…
Session Module
Import
1
import session from 'session';
Copied!
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)

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.
Last modified 2mo ago