Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
How to use session vars to authenticate users?
For example:
if one user is logged in - Session("userID"
will get his ID value.
Then, if another person is trying to go to the password protected page and types in his name and password what happens with the first user?
Will Session("userID"
get a new value? or new session with the same name is created for each user?
Is there a good way of using session variables for authenticating and storing information about each user (create an array and store it there, maybe?) or I have to connect to DB on each page for authentication or pass Form/Srting variables everywhere?
Thank you.
How to use session vars to authenticate users?
For example:
if one user is logged in - Session("userID"
Then, if another person is trying to go to the password protected page and types in his name and password what happens with the first user?
Will Session("userID"
Is there a good way of using session variables for authenticating and storing information about each user (create an array and store it there, maybe?) or I have to connect to DB on each page for authentication or pass Form/Srting variables everywhere?
Thank you.