Page 1 of 1

session variables and multiple users

Posted: Sun May 23, 2004 7:42 am
by Zooter
Never even though about it up until now...

How do session variables handle multiple users? If I write server side scripts that put a username into a session variable called user, what happens if more users also log into the website. Now there will hopefully be as many username session variables wth the same name "username" and with different values, or will there only be one session variable with the latest value?

How do I handle multiple users and therefore multiple sessions?

Thanks

Posted: Sun May 23, 2004 8:19 am
by launchcode
You don't handle anything - each user will be assigned a unique session ID upon which all variables will be stored.

Think how pointless sessions would be if they didn't work like this :)

Posted: Sun May 23, 2004 8:31 am
by Zooter
Thanks.