While Session Expire, i need to Call One Method... Normally when i click Logout, it will calls one method, the user status also set to logged out, then the session will also expire,.,.,But in this case, suppose the user directly closing the window means, after sometime the session will automatically expire, at that time i have to do changes in database(i.e.Updating the status for that user)...

Thanks in advance, Seetharaman.G

From the java documentation - HttpSessionListener.html

Implementations of this interface are notified of changes to the list of active sessions in a web application. To receive notification events, the implementation class must be configured in the deployment descriptor for the web application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.