Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Connect session middleware - regenerate vs reload

Store.prototype.regenerate = function(req, fn){
  var self = this;
  this.destroy(req.sessionID, function(err){
    self.generate(req);
    fn(err);
  });
};
 
PREVIOUS NEXT
Tagged: #Connect #session #middleware #regenerate #reload
ADD COMMENT
Topic
Name
4+6 =