Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Newkirk #1
When window closes
When a user clicks the window close block/x in the top right corner I need to
send the browser to a logout script page that logs them out and closes the
window. I have about 300 pages in this site so something that could be
included in a Application.cfm file would be awesome.
Now I can't use a onbeforeunload() because if they click on a link it will
log them out. Any ideas????????
Newkirk Guest
-
Closing PDF File also closes IE Window.
Whenever I close a PDF that opens in a new window from Internet Explorer, it closes not only the PDF but also all the IE windows I open. It's... -
acrobat window closes immediately after initialization; ver 6 on XP
As soon as Acrobat ver 6 initializes (seen on startup flashscreen), the main Acrobat window opens, and then immediately closes. Can anybody... -
if user closes browser window
hi, I need to save some values in a database when the user closes an unfinished flash using the "X" button of the explorer. I'm making tests for... -
Dir MX: Projector Closes After 1 Sec.
My Director projector closes after 1 second for no apparent reason. This is happening in MX and MX 2004 and only started today. It was operating just... -
Unload component when user closes browser window
Hi there, I developed an asp component (not com+) in visulabasic. From the webbrowser (only IE is used) the user can select various functions... -
blewis #2
Re: When window closes
You have no control over the user's ability to close the browser. You cannot
trigger anything via your application, because your app will never know the
browser is closed (HTTP is stateless, and nothing will be sent telling you app
something happened).
If you are using cookie-based sessions, you can re-write the CFID and CFTOKEN
cookies that CF uses so that they are non-persistent and will expire when the
browser closes. You can find examples of this here on the forums, just search.
Bryan
blewis Guest



Reply With Quote

