note 68666 deleted from function.setcookie by crell

From: Date: Tue, 12 Apr 2022 00:36:59 +0000
Subject: note 68666 deleted from function.setcookie by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218151@lists.php.net to get a copy of this message
Note Submitter: adruff at gmail dot com ---- If you intend to use persistent cookies (vice session cookies that are deleted when the browser is closed) be aware: 1) Firefox appears to require that you include all paramaters, or it will ignore the expiration and treat the cookie as a session cookie 2) My version of firefox (1.5.0.6) defaults to 'keep cookies until i close firefox' , which essentially makes every cookie a session cookie. This of course sucks for devs, but i suppose is supposed to be a security feature for the end user. If the user wants to configure firefox to respect the expiration date and retain cookies beyond the session, the user must change it to 'keep cookies until they expire'.

« previous php.notes (#218151) next »