Permalink
Browse files

Revert "Fix the connect sessions."

This reverts commit c51af4b.

There is something missing to this fix.
  • Loading branch information...
jameskeane committed Aug 25, 2012
1 parent 3f1a3ec commit 098942068b86c6fb5c825ed92b2cbe1050a57925
Showing with 3 additions and 9 deletions.
  1. +3 −9 lib/user.js
View
@@ -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

0 comments on commit 0989420

Please sign in to comment.