Session handling - how to differentiate between users
I'm using php sessions in my web application. For a single user, I need to store a number of variables, such as username, a flag to denote whether the user is logged in, etc. I thought of assigning an array to the $_SESSION, as a variable with all the values. Is there a way to achieve this?

Charu
Session handling - how to differentiate between users
===

I'm using php sessions in my web application. For a single user, I need to store a number of variables, such as username, a flag to denote whether the user is logged in, etc. I thought of assigning an array to the $_SESSION, as a variable with all the values. Is there a way to achieve this?

Charu