Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / August 2005



Tip: Looking for answers? Try searching our database.

Session date being Overwritten (Please help! Loosing hair rapidly!)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WebAppDev - 30 Aug 2005 01:18 GMT
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?  
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.