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
935 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn how to implement Singleton Design Pattern in Java.
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)

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now