2 Replies Latest reply on Mar 3, 2008 1:19 PM by Mr Black

    stop a coldfusion request

    187_2007
      This is what I'm looking for.. example:

      2 users log in.. both pull reports... User 2 pulls the report and waits, but user 1 gets impatient and closes the browser halfway through the request being completed. I'm guessing I will have to use sessions here, but how do I kill or abort user 1's request using CF?
        • 1. Re: stop a coldfusion request
          Level 7
          187_2007 wrote:
          > This is what I'm looking for.. example:
          >
          > 2 users log in.. both pull reports... User 2 pulls the report and waits, but
          > user 1 gets impatient and closes the browser halfway through the request being
          > completed. I'm guessing I will have to use sessions here, but how do I kill or
          > abort user 1's request using CF?
          >

          You don't at least not easily. The browser does not inform the server
          that it has been closed. Part of that 'stateless' nature of the HTTP
          protocol.

          You could theoretically use JavaScript to send a request to inform the
          sever the page has been closed possible using AJAX to keep it behind the
          scenes. But this is not very reliable.

          • 2. Re: stop a coldfusion request
            Mr Black Level 1
            Not possible.