I am Switching between two different Dynamic web application through Links.But if i am working on one application for long time then others application session expires and i got redirected to login page, Is there any method to keep session alive beyond maxInactive time interval while i am working on other application page
How to keep Session Alive beyond its MaxInactive interval
525 Views Asked by DilipAgarwal At
3
There are 3 best solutions below
1

I can think of one option here that is to manage your own Session Pool. You can save the session object in ArrayList<HttpSession>
whenever you create new session. And send that session id to your another application. When you return to previous app, you send back session id. And if you find session dead then find that session in your Session Pool by session id and create new session. In new session set attributes of the previous session object.
Hope this might be useful.
There are two options-