Wouldn't using the "IsClientConnected" property of the httpResponse object provide this functionality?
Ie: If Response.IsClientConnected = True Then '... Else Response.End() End If http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfSystemWebHttpResponseClassIsClientConnectedTopic.asp -----Original Message----- From: Charles Carroll [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 12:10 PM To: AspNetAnyQuestionIsOk@yahoogroups.com Subject: Re: [AspNetAnyQuestionIsOk] Does .net know when client closes browser? session end theoretically fires after 20 minutes of silence from a session owner. But it is not guaranteed because there is a chance that 1. the server software could screw up and not notice 100% of the client's silence 2. if aspnet_wp.exe restarts due to problem the people using the site may not notice but the worker process may be too screwed up to dot its I's and cross its T's and take care of fring all session ends. That being the case smart programmers for many decades store data permanently when they get it and may cache it to speed up access but NO PROGRAMMER WHO WANTS A RELIABLE APP stores any data in session end. They store data when they get it and cache it or fetch it fast as needed. They store tokens (i.e. person id 178 goes with this clump of db data) in sessions only and maybe cached data in caches or session but if anyone updates that data they place it back in DB on the spot not at session end. An inexperienced programmer who never has tested their systems extensively thinks gather data from n web pages and store it as session end. A veteran stores it as he gathers each piece and never procrastinates for an event that may not happen. On Thu, 20 Jan 2005 16:18:32 -0000, scaevola637 <[EMAIL PROTECTED]> wrote: > > I dont think it does, but am just crurious. If it does know, should > not sessionend event (or sessionabandon) fire? > > > > > > ________________________________ > Yahoo! Groups Links > > To visit your group on the web, go to: > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/