Use sessionKey over hard-coded "express.sid"

The sessionKey argument was ignored and "express.sid" was always used
instead.
This commit is contained in:
elisee 2012-09-09 20:31:05 +03:00
parent aab88bba8c
commit a9ea73390d

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){