IFAIK cookies are stored per domain not page.
function getCookie(name) { // Get cookie information and clip off the key
for (i=0;i<cookie_elements.length;i++) {
nextbite=cookie_elements[i].split("=");
if (nextbite[0]==name) {
return unescape(nextbite[1]);
}
}
return null;
}
function setCookie(name, value) { // Set new cookie
cookie_expiry=new Date(fulldate.getTime() + 356 * 24 * 60 * 60 * 1000);
if (value != null && value != "") {
document.cookie=name+"="+escape(value)+";expires="+cookie_expiry.toGMTString();
}
}
function expireCookie(name, value) { // Expire a cookie
cookie_expiry=new Date(fulldate.getTime());
if (value != null && value != "") {
document.cookie=name+"="+escape(value)+";expires="+cookie_expiry.toGMTString();
}
}
What the flame does not consume, consumes the flame.
------------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Home