J
JezB
I want to clear some specific Session variables when the user closes a page.
On my page I have a "return to ..." button which navigates back to the
parent page from which it was invoked - under the click event of this button
I clear my Session variables.
However, how can I capture the fact that the page has been finished with, to
clear my session variables, if the user (a) navigates away from the page
directly by entering a URL, (b) closes the window manually or (c) uses the
browser's BACK button to go back to the calling page ?
Basically I need a generic way to capture page termination, to invoke my
memory cleanup.
On my page I have a "return to ..." button which navigates back to the
parent page from which it was invoked - under the click event of this button
I clear my Session variables.
However, how can I capture the fact that the page has been finished with, to
clear my session variables, if the user (a) navigates away from the page
directly by entering a URL, (b) closes the window manually or (c) uses the
browser's BACK button to go back to the calling page ?
Basically I need a generic way to capture page termination, to invoke my
memory cleanup.