I am developing a web application based on Spring 3.0 that requires all users to log in to view data. After logging in, some parts of the screen use the AJAX polling mechanism to update the contents of the screen in the background. At present, our session will not be a timeout because every ajax request to the server updates the timeout of the web application and the session never expires.
I need to change the application so that when the user logs on to the system, the controller responds to the data poll, but does not update the session timeout, so the session time ends at the appointed time. If the user does not have an active session, the controller returns nothing.
How should I do it?
source
share