session expiry even if there is auto-refresh
843838Aug 24 2006 — edited Sep 2 2007I have a requirement in my application that the user session should expire in an hour. I could easily do this by setting the maxInactiveInterval on the session object in my jsp.
But the hitch is that there is another requirement that our page has to refresh every minute. I could do this through javascript. But, since it refreshes every minute, the session never expires.
So, even if the user is inactive for more than an hour, because of this refresh, there is a huge load on the database as it is hit every minute.
So, is there any way to expire the sesion, even if the page auto-refreshes every minute but there is no other user activity?