http://www.learnasp.com/learn/isclientconnected.asp
explains it better than the MSDN articles.

It is necessary when for example a large or timed out database read is
happening and people hit the stop button or go to a different page.

Read
http://www.learnasp.com/advice/whybuffer.asp
and read the bottom of article and keep in mind that
response.isclientconnected() is a vital call to keep server from tying
up resources but is VERY EXPENSIVE so doing it frequently is unwise
hence the mod tests in all

No that is for one browser request. It tells you that id they execute
y.asp or y.aspx and then move to a different web page or hit the stop
button.

Keep in mind if you hit stop or move away the page keeps running the
program and wasting server resources even though you will never see
the result.

I have seen apps that display data "die" many times a day and not
respond to any requests because the users hit pages that were intenese
and they gave up on the pages but the pages still ate up a ton of
server resources. A simple add of isclientconnected() made those apps
work perfectly.

ISCLIENTCONNECTED knows if a page you accessed is still attached to
your browser only. It can not reach and see if a user is online. Once
you close or move away from an .asp script (say a.asp or a.aspx) we
can KNOW with response.isclientconnected() that WHOEVER REQUEESED THAT
PAGE is not attached to that page anymore. We cannot know if they are
on the internet otherwise it would be big borther and CNN news.


On Fri, 21 Jan 2005 08:14:47 -0500, Chris Mohan
<[EMAIL PROTECTED]> wrote:
>  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: [email protected]
>  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 the Yahoo! Terms of Service.


 
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/
 



Reply via email to