note 54655 deleted from ref.session by betz

From: Date: Mon, 25 Jul 2005 12:27:27 +0000
Subject: note 54655 deleted from ref.session by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92428@lists.php.net to get a copy of this message
Note Submitter: fowdawgg at g mail dot com ---- And odd bug happens if you're not extremely clean with your css declarations. If you concatenate a value onto a session variable via $_SESSION['varname'] .= "morestuff"; and you have this in your <body> style definiton: background-image: url(); background-repeat: no-repeat; the value you write to the session variable will be saved to the session variable TWICE. I.e. <?php session_start(); $_SESSION['varname'] .= "addon"; echo $_SESSION['varname']; ?> with a body tag like this: <body style="background-image: url(); background-repeat: no-repeat;"> will output: "addon" the first visit, and then "addonaddonaddon" on the subsequent hit, and add two "addon"'s every hit to the page.

« previous php.notes (#92428) next »