On Sunday 08 April 2001 06:15, you wrote:
> Your cookie is set to expire in the year 2280. You think that's a
> little overkill?
>
>
> And it runs into the UNIX-style Y2K problem which is...um...13 years
> from now? Well anyway...
2038 with a 32bit processor
--
Christian Reiniger
LGDC Webmaste
actually, the offending line is:
$cookie_expire = "$time*3";
it may be set too high if you triple it, but i think what might be
happening is that it's setting $cookie_expire to '986703865*3' which would
be invalid.
if this is the case (i dont think you can multiply inside of quotes), then
t
The problem is that it is too far in the future.
Your cookie is set to expire in the year 2280. You think that's a little
overkill?
And it runs into the UNIX-style Y2K problem which is...um...13 years from
now? Well anyway...
Make your cookie's expire time a little more reasonable. Like 5 year
This code won't set a cookie. I took the time part from a past
post to set the time for wy ahead. I must be doing it wrong
though:
$time = time();
$cookie_name = "auth";
$cookie_value = "ok";
$cookie_expire = "$time*3";
$cookie_domain = "";
setcookie($cookie_name, $cookie_value, $cookie_expir
4 matches
Mail list logo