Fixed cookie

This commit is contained in:
ITbyHF 2020-09-09 15:41:55 +02:00 committed by GitHub
parent f1e83092f7
commit 3d5339c274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@
type: 'post',
success: function (response) {
$('#msg').html(response);
document.cookie = "token="+token+"Doe; expires=Thu, 30 Dec 2050 12:00:00 UTC";
document.cookie = "token="+token+"; max-age=" + 30*24*60*60;
},
error: function (response) {
$('#msg').html(response)