I am working session topic using cakephp
application in Nginx server:
When I am uploading large files which takes more than an hour, Session is timed out and once the upload percentage reaches to 100% page is refreshing and showing the login page. I am new to this session concept.
Tried adding session start with cookie_lifetime in application:
session_start([
'cookie_lifetime' => 86400,
]);
Modified php.ini:
upload_max_filesize = 3072M
post_max_size = 3072M
session.gc_maxlifetime = 6144
How to make current session alive and access stored values in session? How to increase session timeout?