API Sessions
API v2.x
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. The API v1.x had a specific method to start sessions; the API v2.x does not. Instead, sessions are automatically started as soon as you instantiate the API class, like so:
It either uses 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.