Session Time Out Missing [Bug?]

  • Thread starter Michael Kennedy [UB]
  • Start date
M

Michael Kennedy [UB]

Hi,

I recently instrumented a web application with very basic reporting of the
current number of active sessions and total number of sessions since the web
application has started. This was all going great until we switched from
InProc session management to the StateServer session management. Now we
still get the session start event in the Global.asax but the session end
event has stopped firing. Is this a known issue? Is this just a restriction
of the ASP.NET Session State Server? That is does using StateServer mean
there will be no more session ending events by design?

Here's some sample log output from *before* switching to out of state
session management:

3/18/2004 9:23 AM: User session starting: Active session count is now 2 (24
total).
3/18/2004 9:24 AM: User session ending: Active session count is now 1 (24
total).
3/18/2004 9:44 AM: User session ending: Active session count is now 0 (24
total).
3/18/2004 9:44 AM: User session starting: Active session count is now 1 (25
total).

You can see users coming and going and the session count is incrementing and
decrementing as you would expect. Now here is the same application's output
when running with out of process session management using the ASP.NET
Session State Server.

3/18/2004 5:24 PM: User session starting: Active session count is now 7 (7
total).
3/18/2004 5:54 PM: User session starting: Active session count is now 8 (8
total).
3/18/2004 5:56 PM: User session starting: Active session count is now 9 (9
total).
3/18/2004 5:57 PM: User session starting: Active session count is now 10 (10
total).
3/18/2004 5:59 PM: User session starting: Active session count is now 11 (11
total).
3/18/2004 6:07 PM: User session starting: Active session count is now 12 (12
total).
3/18/2004 6:10 PM: User session starting: Active session count is now 13 (13
total).
3/18/2004 6:15 PM: User session starting: Active session count is now 14 (14
total).
3/18/2004 6:22 PM: User session starting: Active session count is now 15 (15
total).
3/18/2004 6:25 PM: User session starting: Active session count is now 16 (16
total).

The session time-out is set to 20 minutes. Yet there are no longer *any*
session ending log messages. The above traffic is only for an hour, but we
have not received a session ending event in the last 18 hours! So the event
must no be firing any longer.

Any thoughts?

Thanks,
Michael
 
B

bruce barker

you are correct, only the inproc session manager fires OnSessionEnd. its by
design.

-- bruce (sqlwork.com)
 

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

Top