You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When the cookie is set on the client’s browser , it can persist for days , months or years , This makes it easy to save user preferences & visit information , The cookies are stored on the client’s hard disk , so , if the server crashes , the cookies are still available .
Describe the solution you'd like
First, we create a function that stores the name of the visitor in a cookie variable:
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays2460601000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When the cookie is set on the client’s browser , it can persist for days , months or years , This makes it easy to save user preferences & visit information , The cookies are stored on the client’s hard disk , so , if the server crashes , the cookies are still available .
Describe the solution you'd like
First, we create a function that stores the name of the visitor in a cookie variable:
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays2460601000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
The text was updated successfully, but these errors were encountered: