473,387 Members | 1,779 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,387 software developers and data experts.

Session Variables assigned to the wrong session?

Hi all,
I have an ASP.net application in which I keep the user login in session
variables.

Today, with two users accessing simultaneously the application (in
different sessions, but accessing the same page), I noticed that in some
postbacks the returned page was not the one that the user was working; the
data of the form are of the other user.

At first, I thought that it was some problem with the cache of the server -
I'm still not certain if it isn't -, but some operations in the system
depends on the login stored in session variables, and following these
operations I'm sure that the login session variable has changed with the
wrong page returned by the server.

I'm sure that this problem is not related with session expiration, in some
cases it occurs just some seconds after the login. After the "session
change", if I force postbacks by clicking in controls or links in my
application, the login session variable returns to the correct value.

Does anyone know what is happening? Any help or suggestion will be
appreciated.
Thanks in advance,
Fabrício de Novaes Kucinskis.
Nov 19 '05 #1
1 2078
Please don't cross post.

--
Regards,
Alvin Bruney

Shameless Author plug
The Microsoft Office Web Components Black Book with .NET
http://tinyurl.com/27cok
"Fabrício de Novaes Kucinskis" <ab*****@uol.com.br> wrote in message
news:op**************@news.microsoft.com...
Hi all,
I have an ASP.net application in which I keep the user login in session
variables.

Today, with two users accessing simultaneously the application (in
different sessions, but accessing the same page), I noticed that in some
postbacks the returned page was not the one that the user was working; the
data of the form are of the other user.

At first, I thought that it was some problem with the cache of the
server - I'm still not certain if it isn't -, but some operations in the
system depends on the login stored in session variables, and following
these operations I'm sure that the login session variable has changed with
the wrong page returned by the server.

I'm sure that this problem is not related with session expiration, in some
cases it occurs just some seconds after the login. After the "session
change", if I force postbacks by clicking in controls or links in my
application, the login session variable returns to the correct value.

Does anyone know what is happening? Any help or suggestion will be
appreciated.
Thanks in advance,
Fabrício de Novaes Kucinskis.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: mjkahn | last post by:
I've read (and read!) that you shouldn't store objects in Session variables. I've read these reasons: - The object takes up memory that may not be freed until the session times out. Better to...
7
by: Adam Short | last post by:
I'm having all sorts of problems with Sessions, I've been using them for years with out a hitch, all of a sudden the last 6 - 12 months since getting our new Win2003 server it's all gone shakey!!!...
4
by: Cowboy \(Gregory A. Beamer\) | last post by:
Background: ------------- The idea started as a single sign on type of application. Having tested it before, I knew we could institute single sign on using the same Authentication Cookie name (in...
9
by: Randy | last post by:
Hello, I'm having a strange problem. I've got a .NET web app which uses Session variables. Sometime, not all the time, they get cross threaded...that is...one user will have another user's Session...
9
by: Schraalhans Keukenmeester | last post by:
I am stomped with the following problem: I have a script start.php and a second script proceed.php Relevant (and working) sections of the code: start.php <?PHP start_session();
1
by: BillE | last post by:
My application relies on session variables to keep track of the currently selected customer. When a new window is opened using File-New-Window in Internet Explorer, the session variables are...
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...
5
by: Terry On Windigo | last post by:
I think I have figured out my problem but I don't know how to solve it. We are going to start using a forums package and do not want our users to have to login to both our site, and then again to...
0
by: bharathreddy | last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file. Using System.Web.HttpContext class. 1) For accesing session variables :...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.