aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes need to call a function before Session ends Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "need to call a function before Session ends" Watch "need to call a function before Session ends" New topic
Author

need to call a function before Session ends

vinoth Robert
Ranch Hand

Joined: Feb 02, 2011
Posts: 31

I am working in a jsp web application.
in that i am
storing the login time and logout time in database.

its working fine.....

the problem is when the session timeout (ends automatically) i could not get the logout time.


i think i need to call a function before the session timeout.

is it correct? if so how to solve this?

or any other solution?


vinoth.R
Frits Walraven
Creator of Enthuware JWS+ V6
Bartender

Joined: Apr 07, 2010
Posts: 1522
    
  22

Hi Robert,

You can use the HttpSessionListener for that purpose. You have to configure your listener in your web.xml. The interface consists of two methods:

public void sessionCreated(HttpSessionEvent se)
public void sessionDestroyed(HttpSessionEvent se)

Regards,
Frits
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need to call a function before Session ends
 
Similar Threads
jboss session time out listener
Alert user before session timeout
session time out
session problem
session timeout using javascript