Another Session Question

From: Date: Wed, 31 Dec 2003 15:17:19 +0000
Subject: Another Session Question
Groups: php.general 
Request: Send a blank email to php-general+get-173544@lists.php.net to get a copy of this message
There is a little code that worked before my virtual host before they updated to 4.3.1. First time the function is called session should be set, subsequent calls should be skipped.
session_start();                               
   if($_SESSION['counter_file'] !==$counterFile)        //See if visitor has already been counted for this page
   {$num += 1;                              $_SESSION['counter_file'] = $counterFile;
} echo $_SESSION['counterFile'] . ' testxxxxxxxxx ' . $counterFile; $_SESSION['counterFile'] shows nothing, even the first time through $counterFile shows just fine. Al..........

« previous php.general (#173544) next »