Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fdd.html
Copy link to clipboard
Copied
This note in the example is false: "If cfexit is used outside a custom tag, it functions like a cfabort." If cfexit is called from an included template, that particular template halts execution, but the parent template will continue execution (unless you use cfabort instead).
So, clearly cfexit and cfabort do not always function the same when used outside a custom tag.
I'd also imagine there's a good chance that Application.cfc:onRequestEnd() might still fire after a cfexit call, but not cfabort.
Copy link to clipboard
Copied
hi jamie,
I wondered if you new anything about popping a confirmation message when the user closes the browser. I've found the window.onbeforeunload, but this applies to the links within the page. thanks much.