title: Prevent session expired in PHP Session for inactive user
body: <p>I have a problem with my application: my application has many forms and need about 1 hour to finish this form because the form is dynamic (can add other forms). The problem is: the session of my web server is 24 minutes. When user fill the form, they spent so much time and the session timed out because server recognize that the user is inactive. It's very annoying when form submitted, most data was lost and the user is returned to the login page. I have tried to make my session expired in 10 hours with this code:</p>
  
  <pre><code>ini_set('session.gc_maxlifetime', '36000');
  </code></pre>
  
  <p>But it's not working in my server, is it possible my server preventing <code>ini_set()</code> function?</p>
  
  <p>So, what should I do for solving this problem? Can I prevent session timeout so that the session can be expanded to 10 hours? Or can I disable session expiration?</p>
  
  <p>Thanks</p>