API docs say that the lastAccessTime of a HttpSession object is updated when a request is received from the client.
Session timeout is calculated starting from the lastAccessTime of the session.
I have set a session timeout of 20 minutes. A client requests a report. The report is huge, starts displaying immediately in the browser but takes 30 minutes to be completely displayed.
After the report is displayed, now the user clicks on links in the reports to dig further in and gets a session timeout error.
That means the lastAccessTime is not getting updated when the
servlet is still writing output to the browser.
Is there a way to update the session lastAccessTime directly from the servlet code ?
I tried setMaxInactiveInterval(), but doesn't solve the problem.
Regards,
Pritam