babloome
05-01-2003, 07:58 AM
Is this the right way to set a cookie to expire after 1 day?
expirydate = new Date(today.getTime() + (1 * 86400000));
document.cookie = window.location.href + " from " + document.referrer + "; path=/; expires=" + expirydate + ";";
expirydate = new Date(today.getTime() + (1 * 86400000));
document.cookie = window.location.href + " from " + document.referrer + "; path=/; expires=" + expirydate + ";";