Skip to content

Instantly share code, notes, and snippets.

@jazzychad
Created December 16, 2009 06:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzychad/257656 to your computer and use it in GitHub Desktop.
Save jazzychad/257656 to your computer and use it in GitHub Desktop.
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