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

Session.delete

Session.delete(key)

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 ...

let name = Session.delete('name');  //= 'Alice'

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