Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

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'