changed expire time for currentChallengeId cookie to 'never' instead of session

This commit is contained in:
Kalanosh
2016-03-15 14:53:54 -05:00
parent 5df5658a5e
commit 9d5a5d953c

View File

@ -515,7 +515,8 @@ module.exports = function(app) {
}
var view = challengeView[data.challengeType];
if (data.id) {
res.cookie('currentChallengeId', data.id);
res.cookie('currentChallengeId', data.id, {
expires: new Date(2147483647000)});
}
return res.render(view, data);
},