I am running PHP 5.1.4
I am not sure what is going on, but I will try to explain it best I can.
I have a few pages that personalize based on the user that logs in. It basically says "Hello, [NAME]" where [NAME] is $_SESSION[name]
Multiple people could be logging into this page from multiple machines. Sometimes though, when they log in, a different name shows up.
The names are held in a postgreSQL database associated with there username.
This doesn't happen all the time, but I can't pinpoint when it does happen either. It seems the name is random from the database, and may not be related to the next person who logged in. I am not sure if I am not handling the sessions correctly, or if only one variable can be stored. Each page you go to does a session_start ();
I am not sure what other information is needed, but its a persistant problem I am trying to track down. Any help will be helpful :)
I am not sure what is going on, but I will try to explain it best I can.
I have a few pages that personalize based on the user that logs in. It basically says "Hello, [NAME]" where [NAME] is $_SESSION[name]
Multiple people could be logging into this page from multiple machines. Sometimes though, when they log in, a different name shows up.
The names are held in a postgreSQL database associated with there username.
This doesn't happen all the time, but I can't pinpoint when it does happen either. It seems the name is random from the database, and may not be related to the next person who logged in. I am not sure if I am not handling the sessions correctly, or if only one variable can be stored. Each page you go to does a session_start ();
I am not sure what other information is needed, but its a persistant problem I am trying to track down. Any help will be helpful :)
Comment