I have a site where the users sometimes need over an hour to fill out forms and submit to mysql. I've adjusted the session.gc_maxlifetime to 7200 (2 hrs) and verified cookie timeout is 0 for never. The website still sends them back to the login page after the default 24 minutes without saving their data. I've added session_start() to index and my head.php for all other pages to see via include. any help would be awesome. Hosted on godaddy, so I cannot modify the php.ini, they had me modify .user.ini. when I echo the information it shows correctly.
SESSION START-<?php echo $_SESSION['time']; ?> Displays time user logged in.
SESSION TIMOUT-<?php echo ini_get('session.gc_maxlifetime'); ?> Displays 7200
SESSION COOKIE-<?php echo ini_get('session.cookie_lifetime'); ?> Displays 0
<?php
function error_found(){
header("Location: inc/records.php");
}
$lifetime=0;
session_set_cookie_params($lifetime);
ini_set('session.gc_maxlifetime', 7200);
session_start();
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-control: no-cache");
header("Pragma: no-cache");
ob_start();
Note: When refreshing the pages, submitting forms, or any other navigation, the session_start() does not update. Could that be the issue?