Created
December 16, 2009 06:48
-
-
Save jazzychad/257656 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment