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]

Reply via email to