Auto Log out breaking uploads

editor1 shell 1 year ago updated by Vlad R 8 months ago 6

There is a featture in filerun, that I generally like, that a user gets automattically logged out after N min of inactivity. However, this is casuing an issue when trying to do long uploads (that take hours) because the user gets logged out befor upload is finished. 

What's the best way to fix this ?
Also, if it's not fixable, how do I disable auto log out ?

Under review

I will look into this shortly.

I ran into this issue today. I went to Control Panel > Security > Inactivity Timeout and set it to 0 to prevent FileRun from logging me out. Also, it seems to me that FileRun may be ignoring activity. Even with activity, it feels like  it would log me out after an hour from logging in vs when there was last activity in FileRun. I haven't time it, but I may try that next to be sure.

Uploading a large file gets split in chunks. Uploading is not considered activity, because no HTTP request is being completed while transferring bytes unless all of the bytes in that file or chunk are done. If your Internet connection is slow, chunk size is large (your "upload_max_filesize" is set too high) and inactivity timeout too low, this is the result.

For now, my only suggestion is to increase the inactivity timeout period.

If I may add, version 20220202 of Filerun is not honoring inactivity timeouts at all, when either set to zero, 1440 minutes, etc. For reference, I am on a shared host and it's entirely possible that somethng external or scripted on the server is causing the current PHP session to be destroyed prematurely casuing log-out.  But I will often be logged out within 30 minutes of a no-activity session, regardless of what the timeout value is.

Make sure "session.cookie_lifetime" is at least as long as the configured inactivity timeout. Same for "session.gc_maxlifetime".

Make sure you set the PHP "session.save_path" to a folder which might not be cleaned by the system (ie: not inside /tmp)