Page 1 of 1

Cookie problems - won't set with an expiry argument

Posted: Sat Jan 24, 2004 3:58 am
by eludlow
I have a problem with cookies, such that the cookie won't set if the expiry argument is included, either in the date() form or mktime().

If I simply put

setcookie("name", "value");

then it's set fine, but that's no good for me :(

Can anyone suggest why this is so?

Thanks,
Ed Ludlow

Posted: Sat Jan 24, 2004 4:13 am
by William
Ok... Wanting to set the cookie with the time in it? like a name value and then the data? or time?

Posted: Sat Jan 24, 2004 4:20 am
by eludlow
Oops, solved it already myself!

Thanks anyway,
Ed