Hi all,
When I register a session variable within a function, the session variable doesn't seem to get stored. Can anyone tell me why and how to overcome this problem?
EG
<?php
session_start();
function reg()
{
$var1 = "any";
session_register("var1");
}
reg();
?>
The value of "$var1" empty on any other pages.
Thanks!
Stuart