Guest User

Untitled

a guest
Apr 26th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. diff --git a/http-state.js b/http-state.js
  2. index 476cc4a..71755d6 100644
  3. --- a/http-state.js
  4. +++ b/http-state.js
  5. @@ -20,7 +20,7 @@ var idgen = require('./idgen');
  6. res.set_cookie("session_id", session_id);
  7. }
  8. sessions[session_id] = (sessions[session_id] || {
  9. - session: {},
  10. + session: {session_id:session_id},
  11. touch: function() {
  12. this.expiration = (+ new Date) + (options.duration || 30*60*1000);
  13. return this;
Add Comment
Please, Sign In to add comment