• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

stop a coldfusion request

Contributor ,
Mar 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?
TOPICS
Advanced techniques

Views

374

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 03, 2008 Mar 03, 2008

Copy link to clipboard

Copied

LATEST
Not possible.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation