Link to home
Start Free TrialLog in
Avatar of hongjun
hongjunFlag for Singapore

asked on

Large File Upload Cause Session Timeout

Hi,

I am trying to upload a 90MB file but then end up getting session timeout and end up in the login page.

I have tried to change the .htaccess file with the below additions but it does not seem to work. BTW, I am using a web hosting and the only config file I can change is the .htaccess.
php_value post_max_size 120M
php_value upload_max_filesize 100M
php_value max_execution_time 0
php_value max_input_time 0
php_value session.gc_maxlifetime 86400
php_value session.cookie_lifetime 86400

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of mespinozae
mespinozae
Flag of Costa Rica image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hongjun

ASKER

No help. I am still being thrown back to login page. It seems more like a session thing and not a connection timeout.

hongjun
Avatar of hongjun

ASKER

It happens after almost 1 hour of upload.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hongjun

ASKER

>> Most webservers are configured to drop the connection after 3600 Seconds
Is it max_execution_time and max_input_time ?

I check phpinfo and I see the below
                                  Local Value      Master Value
max_execution_time -1                      60
max_input_time        -1                      60


A further scan on my phpinfo values and I saw memory_limit is 32MB. Do I need to up this value as well?

Cheers
hongjun
Avatar of hongjun

ASKER

FYI, I can change .htaccess but not change the apache config file.
>> Most webservers are configured to drop the connection after 3600 Seconds
Is it max_execution_time and max_input_time ?

no those values have nothing to with the values in php .it's an apache thing.

>A further scan on my phpinfo values and I saw memory_limit is 32MB. Do I need to up this value as well?
If you don't load the file into memory that limit should be fine.
Avatar of hongjun

ASKER

Oh ok.

I am trying http://tomas.epineer.se/tesupload/ and hope it will work.

hongjun
Avatar of hongjun

ASKER

BTW, I have no access to apache conf file :(
Avatar of hongjun

ASKER

Hi, I have a new question related to this problem.
https://www.experts-exchange.com/questions/23242144/CGI-Upload-End-Up-Not-Apache-UserID.html

Please help :)