Session Module
Last updated
Was this helpful?
Import
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.
Get a session variable
Arguments
path (String) dot syntax path to the a value in the session object.
Returns
Object
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 updated
Was this helpful?
Was this helpful?