Prevent session expired in PHP Session for inactive user -


i have problem application: application has many forms , need 1 hour finish form because form dynamic (can add other forms). problem is: session of web server 24 minutes. when user fill form, spent time , session timed out because server recognize user inactive. it's annoying when form submitted, data lost , user returned login page. have tried make session expired in 10 hours code:

ini_set('session.gc_maxlifetime', '36000'); 

but it's not working in server, possible server preventing ini_set() function?

so, should solving problem? can prevent session timeout session can expanded 10 hours? or can disable session expiration?

thanks

instead of setting time in ini fixed length, remind session timeout reset on reload. create ajax code request every 5 minutes or file (image or smth). way timer reset every 5 minutes , users can spend day filling out forms.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -