I set a cookie and can read it back while on the same page, but if I set it on one page I can't seem to be able to retreive it on another. Is there I'm missing?
Can you show us the code you use to set the cookie?
I set it as:
setcookie("myVar", "yes");
and attempted to retrieve it as:
echo $_COOKIE["myVar"];
setcookie("myVar", "yes", time()+3600, "/", ".example.com");
try that substituting your .com in there
I think $this->ReallyHelped;
Let me give it a real whirl!
its always good practice to provide the domain and acceptable path for your cookies.. helps with security and functionality... expiry is up to you.. leaving it blank will register is as a "this session only" cookie 🙂