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
939 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 27

Accepted Solution

by:
rrz earned 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
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)

733 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