Hi,
I have a login.php page in which I save the logged in user's email as the session variable, $_SESSION['EMAIL']. I could print this session variable in every other page after I login.
However, in one of the pages, I created a button with the link to another page, like the following,
<input type="button" value=" go to page2 " onclick="document.location.href='page2.php'">
But in page2.php, I tried to print $_SESSION['EMAIL'] and I got nothing.
Can someone with more experience tell me what went wrong? thanks in advance.
Joaquin