Good morning,
I am new to java and spring and currently have spring security implemented within one of my applications that uses the logout-url = /logout
configuration along with a logoutSuccessHandler to allow users to click on a sign out button in order to log out. I have also implemented a heart beat pattern from the client side in javascript that will let the server know that the application is open in a browser. It post a message to the server every 5 minutes. If the browser is closed and the server does not receive a message from the browser that it is alive I want to force the logout-url to be called from the controller. How would I do this is java? I have tried to implement an HTTP request using HttpServletRequest but that does not seem to work.