Hi. I am having trouble trying to set a cookie from a page within the hierarchy of the domain. However, if I place the code to set a cookie within the home page ( it works fine. Why am I having problems setting a cookie from a deeper page ( Although I have no experience setting cookies prior to this I think the concept is very simple. To keep it simple in testing I just called "setCookie()" from "onLoad" within the <body> tag and my setCookie function is so simple:
function setCookie(){
document.cookie="name=jeremy"
}
Why is this not working from the deeper pages??
function setCookie(){
document.cookie="name=jeremy"
}
Why is this not working from the deeper pages??