Use sessionKey over hard-coded "express.sid"
The sessionKey argument was ignored and "express.sid" was always used instead.
This commit is contained in:
parent
aab88bba8c
commit
a9ea73390d
@ -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){
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user