Nope.  Same problem.  I'm seriously thinking there's a bug in the version of
PHP I am running at this point, but I searched php.net and found no mention
of anything ..

Chad

-----Original Message-----
From: Brian Dunworth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 10:37 AM
To: [EMAIL PROTECTED]
Cc: 'Chad Day'
Subject: RE: [PHP] Session problem



On Wednesday, August 08, 2001 at 9:16 AM, Chad Day said:
> I wish it did.
>
> Still the same 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>


  You're asking the session to remember a value ( session_register() ), then
changing that value ( $count++ ) and not re-registering it, then complaining
when the session returns the value you asked it to remember.

  What if you did:

    <?php
    session_start();
    $count++;
    session_register ("count");
    ?>


 - Brian

 -----------------------------------
  Brian S. Dunworth
  Sr. Software Development Engineer
  Oracle Database Administrator
  The Printing House, Ltd.
  (850) 875-1500 x225
 -----------------------------------



--
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