Skip to content

Commit

Permalink
[FIXED JENKINS-29899] Change cookie path from '/' to the root URL of …
Browse files Browse the repository at this point in the history
…Jenkins

Patch contributed by Kiyoshi Ohgishi.
  • Loading branch information
StevenGBrown committed Aug 15, 2015
1 parent fb0cb79 commit d64fd05
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -108,7 +108,7 @@ function setCookie(value, suffix) {

var currentDate = new Date();
currentDate.setTime(currentDate.getTime() + 1000 * 60 * 60 * 24 * 365 * 2); // 2 years
var attributes = '; path=/; expires=' + currentDate.toGMTString();
var attributes = '; path=' + rootURL + '; expires=' + currentDate.toGMTString();
document.cookie = name + '=' + value + attributes;
}

Expand Down

0 comments on commit d64fd05

Please sign in to comment.