How to check whether the user is still in connection? [Answered]RSS

1 reply

Last post Nov 17, 2017 06:12 AM by Yuk Ding

  • How to check whether the user is still in connection?

    Nov 16, 2017 02:44 PM|jimschan|LINK

    Hi,

    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.

  • Re: How to check whether the user is still in connection?

    Nov 17, 2017 06:12 AM|Yuk Ding|LINK

    Hi jimschan,

    You could use this code to check the connection:

    <%
    If Response.IsClientConnected=true then
    Response.Write("User is connectioned")
    else
    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

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.