Window close event in safari

Reply

Join Date: Apr 2008
Posts: 2
Reputation: Nithu25 is an unknown quantity at this point 
Solved Threads: 0
Nithu25 Nithu25 is offline Offline
Newbie Poster

Window close event in safari

 
0
  #1
Apr 8th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Window close event in safari

 
0
  #2
Apr 8th, 2008
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 2
Reputation: Nithu25 is an unknown quantity at this point 
Solved Threads: 0
Nithu25 Nithu25 is offline Offline
Newbie Poster

Re: Window close event in safari

 
0
  #3
Apr 9th, 2008
Thank U Jwenting for your reply.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC