diff --git a/lib/restify-session.js b/lib/restify-session.js index 0c6ce31..0d6bb24 100644 --- a/lib/restify-session.js +++ b/lib/restify-session.js @@ -485,6 +485,9 @@ module.exports = function(config) { cfg.logger.debug(session.name + ': request url: ' + req.url); } var reqSid = req.headers[session.config.sidHeader.toLowerCase()]; + if(!reqSid && req.cookies) { + reqSid = req.cookies[session.config.sidHeader.toLowerCase()]; + } session.exists(reqSid, function(existErr, active){ if (existErr) { next();