Session.del()

Delete the specified key in the session.

Usage

Hover over inputs/exits for more info.

var Session = require('machinepack-session');


// Delete the specified key in the session.

Session.del({

key: 'loggedInAs',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function () {

 

},

});

Inputs

key required

The name of the key in the session store.

'loggedInAs'

Exits

error

An unexpected error occurred.

success

OK.