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

Session state mixed among sessions and requests.

Hello,

I've implemented an ASP.NET Application that is used by many people
concurrently. Each user logs on using Forms Authentication
(authentication against Active Directory). After logon succeeded,
additional data are saved into the session state (Session["ABC"] = new
CDE()) for the user that just logged on.

The problem now is that, if we look at the 3 users A, B and C using
the application concurrently, it happens very often that a user "hops"
between different session: in it's first request user A sees the data
that have been saved in its own session, after submitting the form he
gets the data from session of user B. The next request comes back with
the session data of user C, or A, or B. There's no pattern.

The users identity saved in the HttpContext (Context.User) is always
the right one: if user A logged on, he will be also in subsequent
requests. It's only the session state that isn't the right one ...

ASP.NET seem to mess up the session state! Looks like the state isn't
bound correctly to the single session, or the assignment of session
state back to a requests is buggy.

The application is running on a Win2K Server (no strange chars in the
server's name) with .NET Framework 1.1 on IIS 5. The most of the
security patches/updates are installed.

This strange behaviour can be seen as soon as the application is
configured with the cookieless="true" attribute. I tried to save the
session state using the "StateServer" instead of "InProc", but no
luck. There are no absolute links where the session id in the url can
be lost.

Setting cookieless="false" in web.config seems to solve the problem,
but that's not what I want ;-)

I'd be glad, if somebody could tell me what I'm doing wrong, or if
this a bug? I searched in various newsgroups, but found anything
helpful on this.

Thanks in advance.
Sebastian
Nov 18 '05 #1
0 1221

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

Similar topics

10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
5
by: jensen bredal | last post by:
I need to keep track on user "session data" while still turning session off as i do not want users login to expire? Thanks JB
8
by: ari | last post by:
hey all, i'm trying to make my app as stateless as possible. is it ok to create a dataset and store in viewstate and whenever the user decides to select a from that dataset, to move from...
14
by: Lauri Kotilainen | last post by:
Hi, I've already tried several avenues for this, and am quite stumped. The issue I'm facing is a weird case of sessions getting mixed up (ie. users seeing each others' data). Apparently this...
9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
5
by: jb | last post by:
*Please* help --- I'm tearing my hair out. I want to use sessionstate in a webservice, accessed from a client, written in script (JScript, InfoPath). I have written my webservice (C# .NET). I...
8
by: Michael Schwarz | last post by:
Hi, I have a problem where I have two requests (i.e. two different windows that are using the same session) that are accessing the session collection. The requests will need more time on the...
2
by: DC | last post by:
Hi, we are using ASP.Net 1.1 on eight servers with one session state server (the windows 2003 service). Too often we are getting the exception "Unable to make the session state request to the...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
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:
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...
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.