Hi,
I have a major problem here..all along i assume that my sessions in the code are working until i do a test today 🙁
I declared the sessions at every page as follows:
session_start();
if(($_SESSION['name']) && ($_SESSION['pswd'])) { //session registered
// ok
}
else // redirect to other page
Today, i opened two browsers on my computer and log into different users (User A log-in at the first browser and User B log-in at the second browser).
They showed up the correct page which shows their information. HOWEVER , when i click a link in the first browser, it shows the information of the User B...which is not supposed to:mad:
Why is this happening? I though sessions are supposed to remember each user's info and maintain all the way until i log out? Or is it just that my testing method is incorrect..
Please, i need help and advice.
Thank you.