When a 2nd user logs in creating a new session, all session data from the new
user is overwriting the previous user's session data.
Does ColdFusion allow for multiple concurrent sessions?
When a user logs in I save the Username, FName, LName in a session variable
and everything works great until I try logging in with a second user (ie. admin
and then user).
If I login using Admin, then open a new browser window, then login again as a
User, and then go back and check the variables of the Admin login, the variable
I find in Admin's Session data has been overwritten by the Users's Session data.
Interestingly GetAuthUser() does return the correct corresponding username.
Note: I have used CFLOCK when attempting to Read/Write to the session variable.
Kronin555 - 30 Aug 2005 02:25 GMT
If you're using the same browser on the same computer, the session will be the
same. If you use a different browser, you can get 2 different sessions on the
same computer.
Sessions by default are tracked using a cookie. If you open 2 browser windows,
they are both using the same cookie (and therefore sharing the same session).
BKBK - 30 Aug 2005 11:43 GMT
What are the values of your cfapplication attributes (or equivalent, if you
use Application.cfm), i.e. sessionmanagement, etc. ?
Could we see a code snippet showing how you assign the session vars,
including Username, FName, LName, how you assign application vars
and how you implement cflogin/cfloginuser?