Hi all,
I'm running PHP v4.3.1 on an NT4 box with IIS.
While trying to set cookie duration, I'm having some trouble.
Here's what I'm using:
$cookieLife = time() + 2000;
setcookie ("SomeParm", $someVar,$cookieLife);
That seems to work fine for setting the cookie duration to 2 minutes, although that seems to contradict what the man pages say. However, I've tested it, and it does only last 2 minutes.
If I try:
$cookieLife = time() + 1800;
setcookie ("SomeParm", $someVar,$cookieLife);
Which is what I want to do (set a cookie for 30 minutes), the cookie doesn't even get set, not even for 1.8 seconds because I'm checking:
print_r($_COOKIE);
immediately after setting the cookie.
It seems that anything under 2000 doesn't set, and anything 2000 or over works...but not with the time frame that it should.
Is this a bug on win nt4 boxes...or am I missing something here?
Thanks.