I'm trying to create a cookie and set an expiration date but it stays as "Session". I'm using Google Chrome.
What am I doing wrong?
document.cookie = "savedTests=[{'id':12345678}];expires=" + date.toUTCString() + ";path=/" ;
I'm trying to create a cookie and set an expiration date but it stays as "Session". I'm using Google Chrome.
What am I doing wrong?
document.cookie = "savedTests=[{'id':12345678}];expires=" + date.toUTCString() + ";path=/" ;
Copyright © 2021 Jogjafile Inc.
Try This, Changed some layout for better understanding :
Result :