I have a user interface served by two HTTP servers. Therefore, I need to clear the HTTP session from both servers. This is easy to use in case of logout, but it is not clear how to do this in case of using session timeout.
Server-side notification is possible through the HttpSessionBindingListener Receive notification when restricting / limiting an HTTP session . But how can I notify the client site about this? I need to send a request from the browser to the second server in order to clear the session cookie on the second server, and therefore I cannot send the request from the server.
Added
One server is Tomcat 8, and the second is the Apache HTTPD server. I want to solve it with a UI callback (from Tomcat HTTP Servlet Server).
Michael
source share