Browse Source

remove cookie exp

master
Savorboard 7 years ago
parent
commit
5a00eddac6
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/DotNetCore.CAP/Dashboard/Content/js/cap.js

+ 1
- 4
src/DotNetCore.CAP/Dashboard/Content/js/cap.js View File

@@ -608,8 +608,5 @@ $(function () {

function nodeSwitch(id) {
console.log("id:" + id);
var Days = 10;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie = "cap.node=" + escape(id) + ";expires=" + exp.toGMTString();
document.cookie = "cap.node=" + escape(id) + ";";
}

Loading…
Cancel
Save