Problem regarding Response.IsClientConnected Property

Discussion in 'C#' started by sooperman, Sep 5, 2008.

  1. #1
    Hi, I am using Response.IsClientConnected in classic ASP to see whether or not the visitor is still connected to my server.

    But the problem is that when I test this feature and click STOP button on the browser, IsClientConnected property works fine, but if I just close the browser, IsClientConnected property does not return false and my code which follows after IsClientConnected property continues to Run.

    If Response.IsClientConnected then
    'This code should run if the client is still connected, but if the client even closes his/her browser, this code still runs.
    else
    '
    End if

    Can anyone tell me an alternative way to do this?
     
    sooperman, Sep 5, 2008 IP
  2. sooperman

    sooperman Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what does it mean by session management? do you mean I should write code in Session_OnStart and session_onEnd event?
     
    sooperman, Sep 6, 2008 IP