lib/cycle.js
function(req, res) {

      req.session.authenticated = false;

      var defaultString = 'You have successfully logged out.';

      // now respond or redirect
      var postResponse = this._resolvePostAction(waterlock.config.postActions.logout.success,
        defaultString);

      if (typeof postResponse === 'string' && this._isURI(postResponse)) {
        res.redirect(postResponse);
      } else {
        res.ok(postResponse);
      }
    }
function(req, res) {

      req.session.authenticated = false;

      var defaultString = 'You have successfully logged out.';

      // now respond or redirect
      var postResponse = this._resolvePostAction(waterlock.config.postActions.logout.success,
        defaultString);

      if (typeof postResponse === 'string' && this._isURI(postResponse)) {
        res.redirect(postResponse);
      } else {
        res.ok(postResponse);
      }
    }
function ( req , res ) { req . session . authenticated = false ; var defaultString = 'You have successfully logged out.' ; // now respond or redirect var postResponse = this . _resolvePostAction ( waterlock . config . postActions . logout . success , defaultString ) ; if ( typeof postResponse === 'string' && this . _isURI ( postResponse ) ) { res . redirect ( postResponse ) ; } else { res . ok ( postResponse ) ; } }
the logout 'success' event

@param  {Object} req express request object
@param  {Object} res express response object
@api public
the logout success event