Hello,
Is PHP session secure? I was wondering a case stated below and not sure if I am correct.
Case:
Whenever a person comes to my page, he will be assigned a session ID, say "12345" (just for example). Then whatever data I get from this person are stored as session variables associated to session ID 12345.
Meanwhile at the same a 2nd person come to my page, whose session ID is assigned to be 67890. BUT IF he manually type in the session ID 12345 in the URL using the GET query string, I assume that the 2nd person will actually be in the same session as the 1st person, which means that he can use the session variables of the 1st person.
Am I correct? Is this a security hole? Or is my concept toward session just wrong? Please correct me.
In general, how do people use session to create a member login system? You don't want to store any password as cookies or ust GET query strings. Can anyone give me some advice?
Thanks a lot!