Hi
I have created a seesion for storing the userID of a user who has logged in. The trouble is that when a another user logs in after, the details of the first user are kept.
I think either the session is not being updated, or as the data is fro userID 1, i think it is bringing that up as a defult.
The code I am useing is for the login script is,
session_start();
session_register("user_id");
$user_id = user_id;
Then to recall the userID on later pages
I use
session_start();
at the begining of the script and then, to my understanding should be able to use the variable user_id whereever I want.
If someone could tell me were I am going wrong, i would much appreiciate it !
Thanks