Hi,
In one web site I have to sections that use session variables.
In the first section it is working fine. In the second section however it doesn't although I use the same approach. I can't figure out where the problem is.
at the top of the page I use:
<?
start_session();
?>
then in the page:
<?
session_register($ownerID);
$ownerID = $myrow["id"];
?>
when testing it in the same page, the value of $ownerID is correct.
In the next page, I put this on top:
<?
start_session();
?>
testing the value of $ownerID results in nothing?
Any ideas what is going wrong and is there a way to test if the variable is stored in the session?
Thanks,
Safra
In one web site I have to sections that use session variables.
In the first section it is working fine. In the second section however it doesn't although I use the same approach. I can't figure out where the problem is.
at the top of the page I use:
<?
start_session();
?>
then in the page:
<?
session_register($ownerID);
$ownerID = $myrow["id"];
?>
when testing it in the same page, the value of $ownerID is correct.
In the next page, I put this on top:
<?
start_session();
?>
testing the value of $ownerID results in nothing?
Any ideas what is going wrong and is there a way to test if the variable is stored in the session?
Thanks,
Safra