•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 373,936 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,724 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 579 | Replies: 2
![]() |
•
•
Join Date: Apr 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi,
I have a problem in catching window close event in safar. If the user close the browser window without logging out, i have to invalidate the session. The problem is that , how to catch the window close event in safari? Unload cannot be used, since unload will be fired evenif the user clicks on someother links or refreshes the page. Kindly provide me a solution.
Thanks in advance.
I have a problem in catching window close event in safar. If the user close the browser window without logging out, i have to invalidate the session. The problem is that , how to catch the window close event in safari? Unload cannot be used, since unload will be fired evenif the user clicks on someother links or refreshes the page. Kindly provide me a solution.
Thanks in advance.
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation:
Rep Power: 18
Solved Threads: 187
you can't catch it, at least not reliably.
There are many ways to close a window, some can be caught, some can not.
I actually did extensive research into that several years ago, and that was the conclusion.
Instead you should learn how to monitor session timeouts and act on them.
There are many ways to close a window, some can be caught, some can not.
I actually did extensive research into that several years ago, and that was the conclusion.
Instead you should learn how to monitor session timeouts and act on them.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
- Spellchecker Remote (JavaScript / DHTML / AJAX)
- Unresponsive script (DaniWeb Community Feedback)
- I hate Firefox! (JavaScript / DHTML / AJAX)
Other Threads in the JSP Forum
- Previous Thread: mysql+jsp
- Next Thread: I want to get my current URL in JSP



Linear Mode