cfdeveloper
Programmer
Hey all,
Is there a way through JavaScript or some other resource to detect when the
browser window is closed so I can end a session?
The problem is, this can only happen when the browser is closed, most of the
JavaScript commands (like onunload) also activate when the browser is
opened, refreshed, or the back/forward button is pressed.
I can't kill sessions when those things happen, only when the browser is
closed.
Any help is appreciated
Thanks,
cfcoder
Is there a way through JavaScript or some other resource to detect when the
browser window is closed so I can end a session?
The problem is, this can only happen when the browser is closed, most of the
JavaScript commands (like onunload) also activate when the browser is
opened, refreshed, or the back/forward button is pressed.
I can't kill sessions when those things happen, only when the browser is
closed.
Any help is appreciated
Thanks,
cfcoder