Method call in addition to session logout in AEM
Requirement
Implementing session management
Session duration is 30 mins
After 30 mins, user session should be terminated and local data stored should be deleted.
For the logout functionality, I've written a separate servlet that will be triggered on click on 'Logout' button. It will delete all the local user data stored in AEM.
Now, my requirement is that if the user does not click on logout button and leave the session idle, session needs to logout after 30 mins automatically along with user data deletion. For the later part to happen, I need to call the method written in the servlet. How can I implement this?