I have Java web application with two areas: public and private. I have configured session timeouts for both areas. After session timeout I need to redirect to another page.
If the session timeout is from public area, I need to redirect to home page and if the session timeout is from private area, I need to redirect to another page with a message "Your session has timed out !! " How can I do that ?