User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 361,542 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 1,987 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: 524 | Replies: 2
Reply
Join Date: Apr 2008
Posts: 2
Reputation: Nithu25 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Nithu25 Nithu25 is offline Offline
Newbie Poster

Window close event in safari

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,576
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 184
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Window close event in safari

  #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.
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.
Reply With Quote  
Join Date: Apr 2008
Posts: 2
Reputation: Nithu25 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Nithu25 Nithu25 is offline Offline
Newbie Poster

Re: Window close event in safari

  #3  
Apr 9th, 2008
Thank U Jwenting for your reply.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JSP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 1:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC