note 54063 added to function.setcookie

From: Date: Wed, 22 Jun 2005 17:34:16 +0000
Subject: note 54063 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-90800@lists.php.net to get a copy of this message
"If you cannot get a cookie to stick when using an expiration date..." Also the session.cookie_lifetime parameter in php.ini seems to cause the problem. If this value is set to zero, the cookie will always expire when you close the browser even though you specify expiration time in set_cookie(). After setting session.cookie_lifetime to some nonzero value, my cookies stuck. :) (Apache 1.3.33, PHP 5.0.4) ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+54063 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54063&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54063&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54063&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54063&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54063&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54063&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+54063&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90800) next »