Change coockies expiration #19

This commit is contained in:
BrokenFire 2018-02-26 10:41:04 +01:00
parent aaeb793b18
commit 9a24739113

View File

@ -85,8 +85,8 @@ function tryConnection() {
data: JSON.stringify(request), data: JSON.stringify(request),
success: function (data) { success: function (data) {
console.log(data); console.log(data);
Cookies.set('token',data.token); Cookies.set('token',data.token, { expires: 31 });
Cookies.set('name', data.name); Cookies.set('name', data.name, { expires: 31 });
debugger; debugger;
location.reload(); location.reload();
} }