Aug 21st, 2009, 8:07 PM
Hey Weaver.
Curious! You're using the API? The API works by submitting all the content to Form Tools on each page as the user progresses through the form, so the DB would be updated in stages. I guess it's possible that sessions are being garbage collected at step 6, but it seems like it would create a new submission ID for the user...
One thing to check: look at your database through phpMyAdmin or something like that & look for non-finalized submissions. If sessions are timing out you should see old unfinalized submissions in your form table that match the submissions that only have pages 6 & 7. In other words, look for submission IDs that are slightly lower (by say 1-5) than the submissions that have only 6 & 7 filled in. If you can see information for a single submission spread across two submission IDs, then yes, it sounds like sessions being emptied is at fault.
Assuming this is the problem, try adding this to the top of your form pages
That will attempt to set the session timeout at 2 hours. Not all servers allow for this, but it's worth a shot!
- Ben
Curious! You're using the API? The API works by submitting all the content to Form Tools on each page as the user progresses through the form, so the DB would be updated in stages. I guess it's possible that sessions are being garbage collected at step 6, but it seems like it would create a new submission ID for the user...
One thing to check: look at your database through phpMyAdmin or something like that & look for non-finalized submissions. If sessions are timing out you should see old unfinalized submissions in your form table that match the submissions that only have pages 6 & 7. In other words, look for submission IDs that are slightly lower (by say 1-5) than the submissions that have only 6 & 7 filled in. If you can see information for a single submission spread across two submission IDs, then yes, it sounds like sessions being emptied is at fault.
Assuming this is the problem, try adding this to the top of your form pages
PHP Code:
ini_set('session.gc_maxlifetime',7200);
That will attempt to set the session timeout at 2 hours. Not all servers allow for this, but it's worth a shot!
- Ben