Still not working.  My script is -exactly- as you have it below, and I
believe I've tried that before.

(begins pulling out hair)

Chad

-----Original Message-----
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 2:31 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Session problem


> > > <?php
> > > session_start();
> > > global $count;
> > > session_register ("count");
> > > $count++;
> > > ?>
> > >
> > > Hello visitor, you have seen this page <?php echo
> > > $HTTP_SESSION_VARS["count"]; ?> times.<p>

There was a bug in PHP in versions prior to 4.0.6: $count and
$HTTP_SESSION_VARS["count"] did not reference the same value while on the
*current* page. Try this:

<?php
session_start();
$count++;
session_register ("count");
?>
Hello visitor, you have seen this page <?php echo $count; ?> times.

Kirk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to