?
Solved

I need to capture the window close event and logout the user session,I should not do that for refresh action of the user or if the user navigates to other site from the existing site.

Posted on 2008-10-02
2
Medium Priority
?
944 Views
Last Modified: 2013-11-24
The issue that I am facing is I need to capture the window close event,I already know that I can do it in two ways
1)catch the unload action with Java script
2)Catch the window.event.clientX and window.event.clientY.

Once I capture this input I should be able to log-off the user.

But the issue is, I should not log-off the user in the case if refresh button is pressed F5,and in the cases the user navigates to other site from the parent site.
0
Comment
Question by:Swaroopala
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Expert Comment

by:rohypnol
ID: 22623765
I'm sorry, you can't do that.
0
 
LVL 28

Accepted Solution

by:
rrz earned 2000 total points
ID: 22625076
I agree with rohypnol. If you are using JSP then look at  
http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_23677929.html
0

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question