#19638 [NEW]: setcookie and the null value for the value argument

From: Date: Fri, 27 Sep 2002 18:46:52 +0000
Subject: #19638 [NEW]: setcookie and the null value for the value argument
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969348857@lists.php.net to get a copy of this message
From: cheatah@tweakers.net Operating system: Any PHP version: 4.2.3 PHP Bug Type: Documentation problem Bug description: setcookie and the null value for the value argument When using the setcookie function, I noted that setting the value to NULL had the following result: The expire time argument was completely ignored, and automatically set to one year and one second ago. Also the value sent to the browser for this cookie had changed to 'deleted'. I browsed the PHP source code, and saw my suspicions confirmed, this is the correct behaviour. Could this be included in the documentation? I really like the following syntax: setcookie('name', null, null, '/'); -- Edit bug report at http://bugs.php.net/?id=19638&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19638&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19638&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19638&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19638&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19638&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19638&r=support Expected behavior: http://bugs.php.net/fix.php?id=19638&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19638&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19638&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19638&r=globals

« previous php.doc (#969348857) next »