G
Guest
Hi,
Need help on the following issue.
We need to clean up some session specific backend resource when a user ends
his session. We have a "Logoff" button on the pages that handles that. But
the problem is that sometimes the user still closing their browser window by
clicking on the "x" button of the window. This is quite a problem for us
because it will leave unreleased resource on the server for an unpredictable
period of time, depending the timeout setting on our client's web app.
Simply putting the logic in the window.onclose JavaScript wouldn't do the
job unless there is a way we can test and tell where the caller is from.
Because the clean-up work needed are different when exits from "x" than exits
from code.
Therefore, what I think we need is either an event handler that traps just
the "x" click event; or, in the window.onclose JavaScript, a way to test the
caller.
Can someone please help?
Thanks in advance!!!
Feng
Need help on the following issue.
We need to clean up some session specific backend resource when a user ends
his session. We have a "Logoff" button on the pages that handles that. But
the problem is that sometimes the user still closing their browser window by
clicking on the "x" button of the window. This is quite a problem for us
because it will leave unreleased resource on the server for an unpredictable
period of time, depending the timeout setting on our client's web app.
Simply putting the logic in the window.onclose JavaScript wouldn't do the
job unless there is a way we can test and tell where the caller is from.
Because the clean-up work needed are different when exits from "x" than exits
from code.
Therefore, what I think we need is either an event handler that traps just
the "x" click event; or, in the window.onclose JavaScript, a way to test the
caller.
Can someone please help?
Thanks in advance!!!
Feng