PDA

View Full Version : PHP Form times out after 15 mins?


Steven_Smith
01-08-2003, 12:16 AM
I am having a problem with a form on my site. The form is dynamicly populated from MYSQL by PHP. The user edits the form but when it is submitted the database doesn't get updated. This only happens when it takes the user over 10 minutes to fill out. If you submit it within a few minutes it works fine.

The execution time of a PHP script is controlled in php.ini.

Does a PHP page that is a form expire in that time? Why?

All this time I thought the users were insane. But I now have re-created the problem on my system.

I am also using sessions for user id. No MYSQL errors are happening, the form is method='post' enctype="multipart/form-data" (if there is an image it will update it)

ANy ideas? Thanks
Steve:confused:

Spookster
01-08-2003, 05:21 AM
Are you requiring the session be present in order to update the records? Sessions can timeout and there is a setting that looks something like this:

session.gc_maxlifetime 1440

meaning the session will last 1440 seconds before it goes bye bye. If your host has set it to something shorter that could be it. To find out create a php file and put this in it:

<?php
phpinfo();
?>

run the page and look for that line from earlier.

Steven_Smith
01-08-2003, 06:36 AM
Thanks Spookster.

I have changed the execution time of 'session.gc_maxlifetime' to a much longer time. I'll see what happens.

I didn't know about this error possibility.just when I thought I had it all worked out :p