> For the complete documentation index, see [llms.txt](https://docs.medable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.medable.com/cortex-api/scripting/modules-1/session-module.md).

# Session Module

\
&#x20;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.

### Methods

[get(path)](https://docs.medable.com/reference#section-get-path-)\
[set(path, value)](https://docs.medable.com/reference#section-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.
