473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Session variables and cookies are incorrectly accessible between applications

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
3 1334
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brad | last post by:
Hi everyone, I've been using ASP on a few different projects over the past year, either using Javascript or VBScript. During that time, I've made use of session variables, but even then, I've...
2
by: Amit D.Shinde | last post by:
Hello Experts.. I need some help regarding cookies and session objects and also global.asa file I am creating one cookie when a user logs in on my website. The cookie stores the login name of...
14
by: qaz | last post by:
I've always used session cookies in my web sites. However, since more and more people (including me) are starting to disable cookies, I'm beginning to think that I should change my ways and design...
7
by: Gerald | last post by:
Hi, Is there any know problem using session variables ? My website won't have more than 20 simultaneous connections, and i would like to use 5 session variables containing strings... I know...
7
by: Doug | last post by:
An ASP.NET session cookie set on "www.mydomain.com" can not be accessed on "search.mydomain.com"; hence, a new session and cookie are being created on every sub-domain. This is occuring because...
14
by: Coleen | last post by:
Hi All :-) We have an APSX application using VB.net as the code behind, which uses one or two session variables per page. These Session variables are passed to the final page and calculations...
1
by: David Gaudine | last post by:
(This is a bit like the recent thread "PHP Switching Sessions".) I use session_start(). When I open my web-based application in two windows on the same system, there's a definite clash; I can't...
18
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.