note 64295 deleted from function.session-register by cmb

From: Date: Wed, 24 Feb 2021 12:10:51 +0000
Subject: note 64295 deleted from function.session-register by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-219232@lists.php.net to get a copy of this message
Note Submitter: martijn at brothersinart dot net ---- Please note that if you use a "|" sign in a variable name your entire session will be cleared, so the example below will clear out all the contents of your session. <?php session_start(); $_SESSION["foo|bar"] = "foo"; ?> It took me quite some time finding out why my session data kept disappearing. According to this bugreport this behaviour is intended. http://bugs.php.net/bug.php?id=33786

« previous php.notes (#219232) next »