• Developer
Search »

API Sessions

When you use the API for your forms, it uses sessions to store information about the form as the user progresses from page to page. Prior to version 1.0.0-beta-20090908 of the API, it always used PHP sessions to store the information. After that release, it uses EITHER database or PHP sessions, depending on what value you have set in your $g_api_session_type variable (see here for more information). If you have problems with PHP sessions, it's recommended that you set that value to "database"

To control the timeout for the database sessions, set the $g_api_session_timeout value to something appropriate. This is in seconds and defaults to 3600 (1 hour). Again, see the help documentation on the config.php file for more information.