473,809 Members | 2,660 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Individual ASPState session can be reused by multiple users?!

We are a software company that builds an ASP.Net web application which
implements cookieless sessionState with SQLServer- the session is stored in
the url. Our ASPState database has been built using the standard MS scripts.
The application is used by Admins to look at endusers accounts- permissions
dictate that certain admins have access to certain endusers.

Our Admins (who work from the same facility) have reported problems- stating
while looking at their end users account they are suddenly taken into another
administrators end user account that this other administrator is working on.
Turns out the sessions are criss-crossing.

An administrator bookmarked the login page which contained the session id,
(since ASP.Net creates the session immediately, before any authentication)
and later sent the bookmark to another admin to use. So when both admins log
in, they end up using the same session id and can see each others enduser
depending on who navigates where first with the browser. ASPState doesn't
bark that 2 individuals are using the same session.

This doesn't give us a happy fun feeling we usually have with the dot net
platform. Microsoft MUST already know about such a blatent issue. And we were
surprised that their sprocs that call the AspState tables don't check for
sessions that already exist when attempting to create an initial session.
Basically..

1. User1 uses bookmark with session inside of URL to hit login page.
2. ASPState stores session that was passed in.
3. User1 enters login information and successfully logs in.
4. User2 uses same bookmark with same session inside of url and hits login
page.
5. ASPState doesn't create a new session since it already exists.
6. User2 enters login info and successfully logs in.
7. User1 and User2 sessions are jumbled and private data is potentially
observed.

Does anyone know a way around this?
Jul 21 '05 #1
0 1672

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

Similar topics

0
3193
by: Bryan Ax | last post by:
Quick question regarding best practices for using the AspState database for storing session variables in .NET web applications. I know I need to configure the web.config file with a database user account that can not only execute stored procedures in the AspState database, but the account needs to be able to create temporary tables, etc. as well. What do others typically do for this? Obviously, I don't want to use my sa account for this...
2
2257
by: Glenn Venzke | last post by:
I'm trying to put together a web form that lists all current session information. The session info is stored in SQL server database (ASPState) and I'm trying to retreive and display using a SQLDataReader. I seem to have no trouble querying the "ASPStateTempSessions" table but when I try to write it to the page, I throw an exception that basically says that there is no data to display. Is there some special method you must use when performing...
0
1203
by: Eduardo Rosa | last post by:
Hi, I'm reading a ms tutorial about session in asp.net, and I' can't start the aspstate, somebody can help me? tutorial: http://msdn.microsoft.com/library/en-us/dnaspnet/html/asp12282000.asp?frame=true system: I'm using WindowsXP Pro, .Net Framework v1.1.4322 erro: net start aspstate
2
1283
by: MS | last post by:
Does anyone have the location for some documentation about how this works internally? I am trying to do some statistical analysis of sessions. I see some strange results with the created date getting updated in a session? I would like to know how all the parts of the database relate and are used. Thanks
0
287
by: Tony | last post by:
We are a software company that builds an ASP.Net web application which implements cookieless sessionState with SQLServer- the session is stored in the url. Our ASPState database has been built using the standard MS scripts. The application is used by Admins to look at endusers accounts- permissions dictate that certain admins have access to certain endusers. Our Admins (who work from the same facility) have reported problems- stating...
2
1905
by: tcw | last post by:
We would like to use ASPState to handle the session State. Since we have several web applications (web sites) in our web server, do we have to create an ASPState database for each web application or we can just use one ASPState for all web applications? Thank you in advance. -tc
0
1253
by: Kevin Jackson | last post by:
We are running a ASP.NET 1.1 web app on Windows Server 2003 SP1. We are using IIS 6.0 native mode and .NET 1.1 SP1 is installed. We have 3 web apps in our web farm. We are using SQLServer session state and have our machinekeys matched. We just launched a few days ago. We did an iisreset this morning on all 3 and tonight when things settled down I noticed we had 30 SPIDs still connected to the web apps. These SPIDs were all...
2
5143
by: astuemky | last post by:
I don't know if I should post this here or in SQL Server, but thought I'd start here. We have been using the default ASPState database that microsoft creates for session state tracking. Even though we sometimes only have 10-15 users connected, it is the highest source of database waits on our entire SQL Server. The waits are always on CPU and "LCK_M_U", whatever kind of lock that is. I used to only delete expired sessions 1 x per week...
10
1724
by: Man-wai Chang | last post by:
If two PCs from the same router connects to my web server, will unique session IDs be generated for each connection? In fact, is there an article talking about how PHP generates session cookies? -- iTech Consulting Services Limited Expert of ePOS solutions Website: http://www.itech.com.hk (IE only)
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.