Forum Moderators: coopster

Message Too Old, No Replies

Cookie

Won't update

         

gosman

6:08 pm on Jan 14, 2008 (gmt 0)

10+ Year Member



When users arrive at my site I set a cookie using the following which works fine.

setcookie("update", "update", time()+$timeRemainingToMidnight);

If they arrive at a certain page we insert values in to the database and then set the cookie to updated using the following.

setcookie("update", "updated", time()+$timeRemainingToMidnight);

However the later never works, The cookie value always remains at "update"

Any help would be much appreciated, it's driving me crazy.

PHP_Chimp

8:55 pm on Jan 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you getting any errors?
Or is the cookie just not getting updated?