From a9ea73390d699ef35acc7c9dd207d6b3e00f3b08 Mon Sep 17 00:00:00 2001 From: elisee Date: Sun, 9 Sep 2012 20:31:05 +0300 Subject: [PATCH] Use sessionKey over hard-coded "express.sid" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sessionKey argument was ignored and "express.sid" was always used instead. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index eee5323..5fd042c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -18,7 +18,7 @@ function authorize(options){ data.cookie = connectUtils.parseSignedCookies(parsedCookie, sessionSecret); - data.sessionID = data.cookie['express.sid']; + data.sessionID = data.cookie[sessionKey]; sessionStore.get(data.sessionID, function(err, session){