How to check whether the user is still in connection? RRS feed

  • Question

  • User1840611328 posted


    Could you tell my how could I use classic asp check whether the user is still in connection and how could I control the expire time for the browser cache. Thanks.

    Thursday, November 16, 2017 2:44 PM


  • User-460007017 posted

    Hi jimschan,

    You could use this code to check the connection:

    If Response.IsClientConnected=true then
    Response.Write("User is connectioned")
    Response.Write("user is not connectioned")
    end if

    To control the browser cache, you could use this code:

    Response.ExpiresAbsolute=#<expire date>#

    Best Regards,

    Yuk Ding

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Friday, November 17, 2017 6:12 AM