I am developing a web site for forum. In login page. I registered the username as person in the session. And I try to read that person into another page. I will not working. I gave session_start() and session_registe r('person') functions in the home page.
the isset will return false.
sample coding
// in login.php
$_SESSION['person']=$userid;
// forumlist.php
echo $_SESSION['person'];
the isset will return false.
sample coding
// in login.php
$_SESSION['person']=$userid;
// forumlist.php
echo $_SESSION['person'];
Comment