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(path)arrow-up-right set(path, value)arrow-up-right
Get a session variable
Arguments
path (String) dot syntax path to the a value in the session object.
path
Returns
Object
Set a session variable
value (Any) the value to set. passing null deletes the value.
value
Last updated 4 years ago
Was this helpful?