From: loganathan dot rs at gmail dot com Operating system: Linux PHP version: 5.2.6 PHP Bug Type: Session related Bug description: setcookie function set value as 'deleted'
Description: ------------ setcookie funciton set value as 'deleted' setcookie( 'delete_me', '', time() - 1000, '/', '', '' ); The setcookie function will silently change the '' cookie value to 'deleted' and override your expiry time to time() - 1 year. I only noticed this when the computer I was testing on had it's date set incorrectly to the > 1 year in the past. The computer connects to the server which has it's date correctly set and thus the cookie on the client doesn't delete but stores the value "deleted" instead. -- Edit bug report at http://bugs.php.net/?id=45887&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45887&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45887&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45887&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45887&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45887&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45887&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45887&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45887&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45887&r=support Expected behavior: http://bugs.php.net/fix.php?id=45887&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45887&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45887&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45887&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45887&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45887&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45887&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45887&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45887&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45887&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45887&r=mysqlcfg