I need a help on how to kill a session on closing a browser.I am handling sessions using servlets in weblogic application server.
Thanx for ur reply...Here is the scenario in my case..
I implement sessionlistener interface for doing operations for setting and resetting the flag when session is created and destroyed.I need this sessionDestroyed to be called when the browser is closed which means i need to trap that event.Hope the problem is clear now..
Also you might want to read the following thread which discusses the same issues.
Sun Certified Programmer for Java 2 Platform
[This message has been edited by Valentin Crettaz (edited November 22, 2001).]
Originally posted by ray bond:
you can know at server side when the browser is closed, for this you have to integrate applet in those web pages , inside applet you can open printstream to servlet and in that applet's destroy method you can pass some notification to printstream to servlet. this way everytime servlet is notified if browser is closed and session ended.
Since the destroy() method is called every time you change pages, how would you tell the difference between closing the browser and going to another page? I don't think this would work...
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.