Refresh Cookie every new day...

From: Date: Wed, 06 Sep 2000 12:38:40 +0000
Subject: Refresh Cookie every new day...
Groups: php.general 
Request: Send a blank email to php-general+get-15506@lists.php.net to get a copy of this message
Hello ! I got pages that use cookies. The cookie should be alive for 7 days. If the user comes again to my pages, the cookie should be valid for the NEXT 7 days. What I did is to set the cookie on every page, with expire time()+7*24*60*60. This works fine. The problem is, that some users have selected "Ask, before accepting a cookie" - so they are ask every page ! How can I see how old a cookie is to update the cookie only if one or more days have past ? Regards Martin

« previous php.general (#15506) next »