On my main website I have a variables.php page so I can quickly check out the variables stored in the session:
echo '<pre>'; print_r($_SESSION); echo '</pre>';
But now I'm working on a facelift to my website and currently have it stored in a sub-directory off the root. I have the same variables.php in that directory. When I login from the new version of the website, from the login page inside the sub-directory, everything goes fine, and it shows the "Welcome back Billy" message, so I know variables got loaded into the session from the database. But when I try to view the variables page, it just returns the following:
Array()What am I missing here?Thanks!
Most likely your session has expired. Here is a nice write up about PHP session: