Lost sessions issue

A

AlonR

Hi,

We're experiencing random user sessions losses on our web applications,
and are researching for any useful information which may shed light on
this problem.


Environment:
In our company, we're developing a web product based on ASP.NET 2.0, in
conjunction with Oracle database over ADO.NET and external COM objects
running on the server, interacting with the database, and with external
modules.
Our servers are Windows Server 2003, running IIS 6.0, with all the
latest patches and updates provided by Microsoft. Web application on
the server is a precompiled version of our web solution.


Users:
Number of users on the system is currently minor, less than 10
concurrent users.


Sessions:
We use ASP.NET infrastructure for saving data into session variables.
Our sessionState mode is InProc, and our application sometimes loads
our sessions with heavy information variables (e.g. grids, DataSets
etc).


The problem:
This problem is completely inconsistent, and has no specific scenario
steps. Randomly, our sessions disappear.
HttpContext.Current.Session.IsNewSession becomes true, and all session
variables are lost. The Session Id is sometimes reset and replaced, and
sometimes left unchanged.
We know for sure that this is not a session time-out issue, as sessions
are lost while they're active. Sometimes users lose their sessions
right after logging in, and sometimes after a while of using the
system, sometimes they're not lost at all.

Our system has a handler for such failure (namely, directing the user
to the main login page, in order to start a new session), but we need
to research and find the root cause of this problem.
The failure occurs on random pages, and in random scenarios. Repeating
a scenario after a failure usually yields successful results (i.e. the
failure does not repeat itself).

Research:
This gives us the impression that the problem is probably IIS internal,
and/or depends on very specific status, or a fault in one of our
modules. We do not know of any specific memory leaks in our product.
We are not sure that this is an unhandled exception issue, which can be
resolved by HttpContext.Current.ClearError. Any information about this
topic would be appreciated as well.
Also, it's quite unlikely that those session losses are caused by
configuration files changes, or by changes to the
environment/recompilation of ASPX files.

Are there ways to monitor IIS in order to get a better idea about its
session handling?
Is there a way to follow a session and know what caused its closure?
Any hint would be highly appreciated.

Thank you,
Alon.
 
E

Evertjan.

AlonR wrote on 20 sep 2006 in microsoft.public.inetserver.asp.general:
Hi,

We're experiencing random user sessions losses ....
In our company, we're developing a web product based on ASP.NET 2.0, \

Despite the name this NG is classic ASP only.

There are dot.net groups on Usenet.
This problem is completely inconsistent

I am sorry to hear that.

"Completely inconsistent" probems
cannot be diagnosed [bebugged] and cured per definitionem.
Are there ways to monitor IIS in order to get a better idea about its
session handling?

Perhaps an iis NG could answer that.
 
E

Evertjan.

Evertjan. wrote on 20 sep 2006 in microsoft.public.inetserver.asp.general:
AlonR wrote on 20 sep 2006 in microsoft.public.inetserver.asp.general:


Despite the name this NG is classic ASP only.

microsoft.public.inetserver.asp.general that is!
There are dot.net groups on Usenet.
This problem is completely inconsistent

I am sorry to hear that.

"Completely inconsistent" probems
cannot be diagnosed [bebugged] and cured per definitionem.
Are there ways to monitor IIS in order to get a better idea about its
session handling?

Perhaps an iis NG could answer that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top