Cookie problems - won't set with an expiry argument

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eludlow
Forum Newbie
Posts: 13
Joined: Thu Jan 22, 2004 3:48 pm

Cookie problems - won't set with an expiry argument

Post 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
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post by William »

Ok... Wanting to set the cookie with the time in it? like a name value and then the data? or time?
eludlow
Forum Newbie
Posts: 13
Joined: Thu Jan 22, 2004 3:48 pm

Post by eludlow »

Oops, solved it already myself!

Thanks anyway,
Ed
Post Reply