Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what would cause form variables from 1 user to pass to a 2nd user

Status
Not open for further replies.

yongbum

Programmer
Dec 15, 2005
48
IL
hi
I have an asp.net app.
When 2 users login the login details from the 1st user appear in the 2nd user. The session.variables from the 2nd user are deleted (null) what could cause this behaviour?
 
are these users using different systems? if u are checking in the same system, how did u open the 2nd user's browser window???

Known is handfull, Unknown is worldfull
 
At the momment I'm running 2 sessions of visual studio to check 2 users. the login is ok for each user, I start 2 sessions. The problem arises when I open a web form where I've also generated an html page ontop of the web form using response.write and response.binarywrite. Could this be the problem? If there's only one user everything is ok.
 
the suggestion in my previouse post concerning response.write, this is not the problem I commented out all the response.write and still have the same problem.
 
the reason why i asked that is simple, browser windows (if they are not opened seperately) will share cookie info.

e.g.:
browser window 1 is opened, Ctrl+N is used to open window 2.

any changes in the session in window2 will now affect window 1.

try opening 2 browser windows (using the browser icon itself) and try logging in with the users. the 2 sessions of VS is not required...

Known is handfull, Unknown is worldfull
 
Your input is really appriciated, I'm really strugling with a deadline to meet.
At the moment I'm testing this on 1 pc. But when I've run it on 2 pcs, 2 sepearate users the result is the same the session variable is suddenly non existant.

 
hmm, really sorry man, i am unable to find a solution. are u using application variables by any chance? otherwise ur server may have some problems in retaining sessions. wht session settings do u have???

Known is handfull, Unknown is worldfull
 
I'm using application variables and session variables.
What session settings are you refering to?
 
in web.config.

the only other way where such a scenario can arise is when application variables are being referred rather than session variables...

Known is handfull, Unknown is worldfull
 
It's as if the session memory is getting erased. I started using the session variables cause variables that I was passing between forms where also disappearing.
 
is cookies enabled in the browser???

Known is handfull, Unknown is worldfull
 
Excuse my ignorance I can't find where cookies are enabled/disabled in the internet property settings.
It's probabley ok cause for a single user everything's ok.
If you can tell me where to check I will.
In the web.config cookiless=false.
 
Tools -> Internet Options -> Privacy


but i guess from ur comments that it has to be something else...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top