i have a class MyHttpSessionListener which implements HttpSessionListener,
in sessionCreated() method
i am storing the session reference in to Hashtable and setting Hashtable as a attribute to the context. i am not removing the expired session from the Hashtable in sessionDestroyed() method.
i have a
JSP which show all the session in the context (including active and expired) with some details such as (creation time, last access time, session id etc)
i also want to display that the session object expired or not. how do i do that ?
in short i want to know whether a given session object is expired or not ?