Merge pull request #991 from marcelklehr/fix/multiple-sessions

Don't break if there is no session cookie.
pull/995/head
John McLear 2012-09-11 12:00:58 -07:00
commit 693b9832ec
1 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,11 @@ exports.checkAccess = function (padID, sessionCookie, token, password, callback)
//get information about all sessions contained in this cookie
function(callback)
{
if (!sessionCookie) {
callback();
return;
}
var sessionIDs = sessionCookie.split(',');
async.foreach(sessionIDs, function(sessionID) {
sessionManager.getSessionInfo(sessionID, function(err, sessionInfo) {