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

stop a coldfusion request

Contributor ,
Mar 03, 2008 Mar 03, 2008
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
402
Translate
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
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.

Translate
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
LATEST
Not possible.
Translate
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