OK, but then how do you explain:

<?php

function reg() {
   $test = 13;
   session_register("test");
        echo "in reg(), test=<$test><br>";
}

global $HTTP_SESSION_VARS;
session_start();
reg();
if (session_is_registered("test")) {
   $tt = $HTTP_SESSION_VARS["test"];
   echo "session variable test=<$tt><br>";
   }
else
   echo "You really don't know what you're doing, do you?<br>";
?>

This still gives me the output:

in reg(), test=<13>
session variable test=<>


Aaargh!



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

Reply via email to