Notification before Session expires/timeout
I have an servlet/struts application where I need to limit user login based on some settings. So I have a counter kept to check in ServletContext. Whenever a new session is created acordingly this counter is incremented. When 'logout' happens I am decrementing the counter. But when session expires, this is not happening. Please suggest how to do this. Is there a way to to find session is going to expire ..? If so, at that time can session attributes are accessible..?
Thanks in advance.
Balaji C R B