I am having some difficulties defining an expiration date long into the future in my cookies....
All I do is make a var lik:
$time = time() + (36584500012*30) ;
then when I set the cookie, i write:
setcookie("testvar", $val, $time, "/", ".mydomain.com") ;
This only seems to produce a session cookie that disappears when the browser is closed...
earlier I used a cookie that only lasted for eight hours, and I had no problem doing that.
Now, this damn cookie won`t set.
If u have an idea, or been in the same situation yourself, please reply to this post! I am running out of options here...
Also: Is it possible to set a cookie lifetime to be infinite...?