note 21820 added to function.setcookie

From: Date: Tue, 28 May 2002 14:56:26 +0000
Subject: note 21820 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-31098@lists.php.net to get a copy of this message
Something that i didn't realise until recently is that cookies set by a phpscript sets the expiring time according to the php-server clock and the cookie deletes according to the users local computer time. This means, setting a cookie that expires in 10 minutes is quite risky since the visitors clocks many times are going far from correct. I might be wrong, but you should try som script and test before you tell me i'm wrong. i found it hard to believe, cause it makes cookies quite useless many times, unless you involve javascript to set a correct expiration time for each user. please tell me if i'm wrong or right, cause i'm not 100% sure on this one. -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+21820 http://master.php.net/manage/user-notes.php?action=delete+21820 http://master.php.net/manage/user-notes.php?action=reject+21820

« previous php.notes (#31098) next »