/t5/coldfusion-discussions/stop-a-coldfusion-request/td-p/392353Mar 03, 2008
Mar 03, 2008
Copy link to clipboard
Copied
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?
/t5/coldfusion-discussions/stop-a-coldfusion-request/m-p/392354#M35393Mar 03, 2008
Mar 03, 2008
Copy link to clipboard
Copied
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.