Another Session Question
From: Al (news_at_ridersite.org)
Date: 12/31/03
- Next message: Jyry Kuukkanen: "Re: [PHP] Generating PDF"
- Previous message: Scott Fletcher: "How to compile unixiODBC with PHP and Apache???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net Date: Wed, 31 Dec 2003 10:17:19 -0500
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..........
- Next message: Jyry Kuukkanen: "Re: [PHP] Generating PDF"
- Previous message: Scott Fletcher: "How to compile unixiODBC with PHP and Apache???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|