Dave, I presume you mean the container has expired the session? You should use a filter.
You can then use the methods on the HttpServletRequest to see if the sesion is valid and then the isNew() on the session itself to see if it is a new session. You can then send them to your login page or anywhere else if you don't want to go further or chain.doFilter to carry on. HTH Adrian On 9/26/05, Dave <[EMAIL PROTECTED]> wrote: > How to identify expired session so that I can show a message to tell user > that session is expired and need to login in again? If I check if session is > null, I can not tell whether the session has not been created or expired. > All data are kept in session scope, if a session is expired, all data lost. > So I can not tell if the user has ever logged in. In JSF, what is the best > way to do this? Thanks for help. > > ________________________________ > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > >

