Skip to content

Commit

Permalink
Revert "Fix the connect sessions."
Browse files Browse the repository at this point in the history
This reverts commit c51af4b.

There is something missing to this fix.
  • Loading branch information
jameskeane committed Aug 25, 2012
1 parent 3f1a3ec commit 0989420
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/user.js
Expand Up @@ -56,17 +56,11 @@ exports.initialize = function (nowjs) {
};

// Populate session by parsing cookie
var sid = decodeURIComponent(this.user.cookie['connect.sid']);
if (sid) {
var self = this;
nowjs.sessionStore.get(sid, function (err, session) {
self.user.session = session;
return;
});
var cookie = this.user.cookie[nowjs.options['cookieKey']];
if (cookie) {
this.user.session = nowjs.sessions[unescape(cookie)];
}



// set to true upon first replaceVar and emit connect event
/**
* @private
Expand Down

0 comments on commit 0989420

Please sign in to comment.