Hello!
anyone out there with experiences of creating session variables within an method of an object ?
i.e :
<?
class Test {
function setSessionData() {
$tmpVar = "data";
$retVar = session_register("tmpVar");
}
}?>
Script :
<?
$s = session_start();
$tmp = new Test();
$tmp -> setSessionData();
?>
if I check this with is_session_registered in the script it returns true, but the value is set to null ?!
I´ve done the same thing without using a class and it worked ok, but this doesn´t.
Thanks in advance! Andreas