0

my login script checks for login name and password in the database, if true then set value for a session variable for example $_SESSION = $login --> this is to identify who got logged in.

however, if i have more than one user logged in to the system, then $_SESSION will get over written .. only the last user logged in session remains.

how am i supposed to have multiple users logged in at the same time with session?

is this possible with session? or if cookies have to be used.

thanks

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by chrishea
0

Hi k2k,

When each user logs in they start a new, individual session that is unique to them. It is not connected to any other sessions.

Session variables are only global inside the session so you can't override them from another session. The only time you may have problems is if every user is using the same pc at the same time.


Hope this helps
Zagga

0

The session variables could only become the same if you are setting them from some common place / value (e.g. a single field set in a database).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.