File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Detecting Session timeout? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Detecting Session timeout?" Watch "Detecting Session timeout?" New topic

Detecting Session timeout?

Bahadur Shah

Joined: Feb 20, 2007
Posts: 18
Is there any way i can be notified when the session timesout?

In Jsp, we can extend HttpSessionListener and override the destroy method.

In JSF also, we need to follow the similar procedure or any better ways of doing so?
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

Remember, JSF just builds on the Servlet and JSP API, so there's nothing stopping you from doing 'normal' Servlet, JSP and Session operations!

-Cameron McKenzie
I agree. Here's the link:
subject: Detecting Session timeout?
It's not a secret anymore!