Merge pull request #1 from elisee/patch-1

Use sessionKey over hard-coded "express.sid"
This commit is contained in:
José F. Romaniello 2012-09-10 17:47:56 -07:00
commit eca01e0187

View File

@ -18,7 +18,7 @@ function authorize(options){
data.cookie = connectUtils.parseSignedCookies(parsedCookie, sessionSecret); data.cookie = connectUtils.parseSignedCookies(parsedCookie, sessionSecret);
data.sessionID = data.cookie['express.sid']; data.sessionID = data.cookie[sessionKey];
sessionStore.get(data.sessionID, function(err, session){ sessionStore.get(data.sessionID, function(err, session){