Click here to get back home

Weird problem with an ASP.NET application and Session Variables that mess up

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Weird problem with an ASP.NET application and Session Variables that mess up M. Simioni 07-07-2005
Get Chitika Premium
Posted by M. Simioni on July 7, 2005, 10:34 am
Please log in for more thread options
Hi, the webserver is a

HP ProLiant DL380 G3
1GB RAM
Dual U320 SCSI
COMPAQ Smart Array 5i + Battery Pack installed
N°2 (RAID 1) COMPAQ BD072863B2 - 72.8GB Ultra320, 10K Hot-pluggable, 1"
Windows 2000 Server SP4 + all patches downloaded by Windows Update
SQL Server 2000 + SP3a

I have a weird problem with an ASP.NET application.
The database that the application uses is 1GB+ large, and the query that the
application runs are nearly heavy.
I have done the SQL Profiling for 24hours (done in a typical working day)
and I used the Indexes Tuning.
What happens is that when the number of users reach about 25/30 people (i
know, it's so a little number of users) it seems that the session's
variables mess up: a user see the result of a query regarding another users,
he sees labels that should not see, and other funny mistakes.
If i restart the computer, or if i simply stop the aspnet_wp.exe process,
all return to work correctly.

When we had only 5/10 people that used the website, no problem was found.

I hadn't write the code by myself, i know it could be a little heavy, but i
can ask something to the developer if you want.

Any idea?

Thank you for the aid,
Marco






Posted by Bruce Barker on July 7, 2005, 9:45 am
Please log in for more thread options
its probably a bug in the code. the most common cause of this problem is
storing session data in a static or vb module (whose public varaiables are
actually static). when is is done, and two users access the website at the
same time, they see each others data.

-- bruce (sqlwork..com)


> Hi, the webserver is a
>
> HP ProLiant DL380 G3
> 1GB RAM
> Dual U320 SCSI
> COMPAQ Smart Array 5i + Battery Pack installed
> N°2 (RAID 1) COMPAQ BD072863B2 - 72.8GB Ultra320, 10K Hot-pluggable,
> 1"
> Windows 2000 Server SP4 + all patches downloaded by Windows Update
> SQL Server 2000 + SP3a
>
> I have a weird problem with an ASP.NET application.
> The database that the application uses is 1GB+ large, and the query that
> the
> application runs are nearly heavy.
> I have done the SQL Profiling for 24hours (done in a typical working day)
> and I used the Indexes Tuning.
> What happens is that when the number of users reach about 25/30 people (i
> know, it's so a little number of users) it seems that the session's
> variables mess up: a user see the result of a query regarding another
> users,
> he sees labels that should not see, and other funny mistakes.
> If i restart the computer, or if i simply stop the aspnet_wp.exe process,
> all return to work correctly.
>
> When we had only 5/10 people that used the website, no problem was found.
>
> I hadn't write the code by myself, i know it could be a little heavy, but
> i
> can ask something to the developer if you want.
>
> Any idea?
>
> Thank you for the aid,
> Marco
>
>
>
>




Posted by Kristofer Gafvert [MVP] on July 7, 2005, 11:03 am
Please log in for more thread options
I agree with Bruce, i also think that there is a bug in the code.

If i were to debug this, i would start to look at the code that is storing
and accessing data that is mixed up between the users.

Really difficult to point at something specific.


--
Regards,
Kristofer Gafvert (IIS MVP)
www.gafvert.info - My Articles and help
www.ilopia.com


M. Simioni wrote:

> Hi, the webserver is a
>
> HP ProLiant DL380 G3
> 1GB RAM
> Dual U320 SCSI
> COMPAQ Smart Array 5i + Battery Pack installed
> N°2 (RAID 1) COMPAQ BD072863B2 - 72.8GB Ultra320, 10K Hot-pluggable,
1"
> Windows 2000 Server SP4 + all patches downloaded by Windows Update
> SQL Server 2000 + SP3a
>
> I have a weird problem with an ASP.NET application.
> The database that the application uses is 1GB+ large, and the query that
the
> application runs are nearly heavy.
> I have done the SQL Profiling for 24hours (done in a typical working day)
> and I used the Indexes Tuning.
> What happens is that when the number of users reach about 25/30 people (i
> know, it's so a little number of users) it seems that the session's
> variables mess up: a user see the result of a query regarding another
users,
> he sees labels that should not see, and other funny mistakes.
> If i restart the computer, or if i simply stop the aspnet_wp.exe process,
> all return to work correctly.
>
> When we had only 5/10 people that used the website, no problem was found.
>
> I hadn't write the code by myself, i know it could be a little heavy,
but i
> can ask something to the developer if you want.
>
> Any idea?
>
> Thank you for the aid,
> Marco


Similar ThreadsPosted
How to setup "Prevent interference of the session lock from application generated input" July 6, 2007, 6:04 am
NTLM Auth (weird) January 23, 2008, 4:15 pm
Weird Behaviour Accessing MS CA Web Site August 4, 2008, 4:44 pm
Weird Processes on my Windows 2003 Servers July 16, 2006, 9:43 am
IAS/RADIUS session duration August 6, 2007, 12:10 pm
Force Lockout Session October 21, 2007, 10:11 am
Kerberos V5 Authentication for a Telnet Session October 27, 2005, 3:21 am
Telnet session "Shell process may not have been launched" (Solution) June 21, 2005, 2:53 pm
How to Fix: Anonymous Session Connected; Attempted to Open an LSA Policy Handle. Event 6033 September 26, 2007, 4:41 pm
SHA-256 and Application Interoperability July 6, 2005, 9:15 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap