This is in regards to a issue related with large File Upload and J2EE Session
When a large file is uploaded from a web application and that transfer rate exceeds the session timeout, the user is back to login page.
Required Testcase -
The session should not expire when file is getting uploaded
There are multiple options to address this situation, however nothing seems to fit appropriately. I cannot increase session timeout as it will affect overall application, there is a security risk if session is set to max (setMaxInactiveInterval as -1).
I am thinking in line on implementing something at listner level (but looks like the HTTPSessionListner will come late as handler) or something to keep the session alive using META-REFRESH
I am looking if someone has dealt with this scenario before and how that's implemented (if there is any other better solution that could address this quite obvious scenario)
a progress indicator will be the ideal solution for you.
As it will be communicating with the server while the upload is in progress that will keep your session alive. It will also prove better user experience.
Joined: Jul 14, 2009
Unfortunately, No - I don't have the Progress Bar - Looking into that option now - Thanks
subject: J2EE Session Expires with Large File Upload