note 120616 deleted from function.setcookie by crell

From: Date: Tue, 12 Apr 2022 00:36:47 +0000
Subject: note 120616 deleted from function.setcookie by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218147@lists.php.net to get a copy of this message
Note Submitter: dont at mail dot me ---- > "When deleting a cookie you should assure that the expiration date is in the past, to > trigger the removal mechanism in your browser" This part of the documentation is no longer accurate. On my version of PHP (5.6.28) setting a null, empty string or boolean false value causes the server to ignore your expire date parameter and always sends value "deleted" and expire date 1970-01-01 00:00:01.

« previous php.notes (#218147) next »