Skip to main content
Participant
March 3, 2008
Question

stop a coldfusion request

  • March 3, 2008
  • 2 replies
  • 442 views
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?
This topic has been closed for replies.

2 replies

Participating Frequently
March 3, 2008
Not possible.
Inspiring
March 3, 2008
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.