Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/http-state.js b/http-state.js
- index 476cc4a..71755d6 100644
- --- a/http-state.js
- +++ b/http-state.js
- @@ -20,7 +20,7 @@ var idgen = require('./idgen');
- res.set_cookie("session_id", session_id);
- }
- sessions[session_id] = (sessions[session_id] || {
- - session: {},
- + session: {session_id:session_id},
- touch: function() {
- this.expiration = (+ new Date) + (options.duration || 30*60*1000);
- return this;
Add Comment
Please, Sign In to add comment