Change coockies expiration #19
This commit is contained in:
parent
aaeb793b18
commit
9a24739113
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user