note 45084 added to function.setcookie

From: Date: Wed, 25 Aug 2004 20:49:14 +0000
Subject: note 45084 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-75252@lists.php.net to get a copy of this message
Sorry to disagree with Mr-Yellow, but in my testing, using Max-Age in a cookie header has the result of IE6 treating the cookie like a session cookie (doesn't store it as a file). I don't doubt that Max-Age is a better method (gets around problems with users having invalid date/time clocks) but if IE6 doesn't treat it correctly then its not very useful. Stick with the setcookie() function and you won't have this problem (and every browser in the universe is backward compatable for the cookie expires parameter). ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45084 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45084&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45084&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75252) next »