Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Session.delete

Session.delete($key) -> null

Description

Delete a session value for the given key.

The value for the given key is returned.

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


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

$name = Session.delete('name')  //= 'Alice'

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