cookies

From: Date: Wed, 23 May 2001 07:46:55 +0000
Subject: cookies
Groups: php.general 
Request: Send a blank email to php-general+get-53994@lists.php.net to get a copy of this message
Sorry. My emails is acting wierd. This is a repost. The suggestion was there is a clock problem. My clock is right. Could it be cause by a time zone difference? original message - I have set up a user login so that it will assign a cookie for one hour - setcookie("cookie_id", $id, time()+3600); The manner in which i suse the expiration is copied form the manual but i have actually tried several alteratives. The problem is the expiration works perfectly locally (i am running apache 1.3 for windows) but once i upload it (linux red hat 5.2 (why so old i dont know)/ apache 1.3.19.) The expiration will not work on my browser(s) unless i increase the expiration to +5000 or above. My client tests it using the same version of IE i have and it will not set the cookie still at +5000 for him. Now i understand from browser to browser there can be differences but why can i set a cookie for +200 locally but not for less than +5000 uploaded when i am most certainly checking it with the same browser (IE 5.5)

« previous php.general (#53994) next »