By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,347 Members | 2,113 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,347 IT Pros & Developers. It's quick & easy.

Session variables and cookies are incorrectly accessible between applications

P: n/a
Hi, I have a really bad problem with ASP.net application. It seemed fine
until it was tested in multisession environment. When 2 users access the
same aspx page at the same time sometimes the session variable of first
session is visible to second session instead of his own session
variable.
In Web.config file session mode is set to InProc and cookieless="false".
Nothing changed when I change cookieless="true". Then I replaced session
variables with cookies and it still didn't correct the problem. What can
be wrong? How session variables can be accessable to another session if
they are saved in cookies? How cookies are accessable to another
session?

Thanks
Galina

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
they aren't. its a coding error on your part. you are probably storing
session variables as shared or in vb module.

-- bruce (sqlwork.com)
"Galina Grechka" <ga****@datatracplus.com> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
| Hi, I have a really bad problem with ASP.net application. It seemed fine
| until it was tested in multisession environment. When 2 users access the
| same aspx page at the same time sometimes the session variable of first
| session is visible to second session instead of his own session
| variable.
| In Web.config file session mode is set to InProc and cookieless="false".
| Nothing changed when I change cookieless="true". Then I replaced session
| variables with cookies and it still didn't correct the problem. What can
| be wrong? How session variables can be accessable to another session if
| they are saved in cookies? How cookies are accessable to another
| session?
|
| Thanks
| Galina
|
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
| Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #2

P: n/a
I create session variables in aspx.vb file - code behind aspx page.
Where am I suposed to do this?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3

P: n/a
The problem was that by defauld aspx page can be cached on web server. I
specified Location="Client" in OutputCache directive and it fixed the
problem.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.