changed expire time for currentChallengeId cookie to 'never' instead of session
This commit is contained in:
@ -515,7 +515,8 @@ module.exports = function(app) {
|
|||||||
}
|
}
|
||||||
var view = challengeView[data.challengeType];
|
var view = challengeView[data.challengeType];
|
||||||
if (data.id) {
|
if (data.id) {
|
||||||
res.cookie('currentChallengeId', data.id);
|
res.cookie('currentChallengeId', data.id, {
|
||||||
|
expires: new Date(2147483647000)});
|
||||||
}
|
}
|
||||||
return res.render(view, data);
|
return res.render(view, data);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user