THT is in early Beta. We welcome contributors & feedback.

Session.get

Session.get(key, default = '')

Description

Retrieve the value for the given key.

If the key does not yet exist, the default value is returned.

Session.set('name', 'Alice');


// ... in a later request ...

Session.get('name'); //= 'Alice'

Session.get('language', 'en'); //= 'en'