dragosh
asked on
Set "Expires" attribute for a cookie
i need to set a cookie that will last "forever" .. how do i do that ??
(in JScript)
10x
(in JScript)
10x
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
AlfaNoMore:
i think adding 1 year it's enough :))
10x
i think adding 1 year it's enough :))
10x
if (getCookie(NameOfCookie)) {
document.cookie = NameOfCookie + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
By the time it's 1970 again... If there not manually deleted !