Skip to content

Commit

Permalink
Merge pull request #885 from binford2k/set_cookie_lifetime
Browse files Browse the repository at this point in the history
Set cookie lifetime
  • Loading branch information
binford2k authored Dec 18, 2018
2 parents 5b54649 + f6448ff commit f3f8f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/showoff.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,12 @@ function showTour(name, record) {
if(record) {
clientTours.push(name);
document.cookieHash['tours'] = clientTours;
document.cookie = "tours="+JSON.stringify(clientTours);
document.cookie = "tours="+JSON.stringify(clientTours)+"; max-age=31536000; path=/;";
}

// this keeps track of the version of the presenter tour we've seen
if(name == 'showoff:presenter:auto') {
document.cookie = "tourVersion="+tourVersion;
document.cookie = "tourVersion="+tourVersion+"; max-age=31536000; path=/;";
document.cookieHash['tourVersion'] = tourVersion;

// we don't need this anymore; let's save a byte or three
Expand Down

0 comments on commit f3f8f11

Please sign in to comment.