When I try the code below and register_globals=On, its work fine, the
counter variable is incremented each time that I load the page, but, when
register_globals=Off, its does not work, the counter variable is save just
in first time and never more.

<?php session_start();
   // register a session variable
   $counter = $HTTP_SESSION_VARS["counter"];
   // increment and display the value of the counter
   echo("You have visited this page $counter times! Don't you have
   anything else to do, you bum?!");

How can I fix this? With out to turn register_globals=On.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to