Stig,
Session_End fires on a background thread, so it's not going to fire
immediately when a session times out, but it will fire.
If you place some exception handling in your ADO.NET code, you will be able
to determine what's happening.
Jim Cheshire, MCSE, MCSD [MSFT]
Developer Support
ASP.NET
ja******@online.microsoft.com
This post is provided as-is with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Stig Johansen" <an*******@discussions.microsoft.com>
Sender: "Stig Johansen" <an*******@discussions.microsoft.com>
Subject: Session_End not firing or limited?
Date: Fri, 5 Dec 2003 03:16:51 -0800
Lines: 18
Message-ID: <0a****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcO7IUgrMbAwAFyBRL6Oh6fGaY1Hkw==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.framework.aspnet
Path: cpmsftngxa07.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:194621
NNTP-Posting-Host: tk2msftngxa12.phx.gbl 10.40.1.164
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
I have what I thought was a simple task. When the user's
session times out I want to save some data to a database
so that these can be retrieved the next time the user
connects. I have therefore put this in the Session_End
procedure of the global.asax.vb file.
The problem is that nothing seems to happen. So either the
Session_End is not firing or there is some issue with
using the sqlclient at this time?
I have made sure that the session is run "inproc".
Would appreciate a lot if anyone have any
experiences/suggestions to share?
Stig