I have a long running script that has a progress bar that updates every few seconds (This is important since it means I have already outputted information to the browser).
The script can run up to 10+ hours, after which it redirects to a results page. The results page looks for a valid session:
$_SESSION['valid'] == true;
before allowing anyone to access it. However, I am running into a problem where the browser SESSION will expire, and the results page will not allow access to the user upon redirect. Is there any way to solve this? I could of course change my session time limit at the top of the script, but ideally I could refresh the session right before the page redirect. As of now, I am running into the error: warning: session_start(): cannot send session cookie - headers already sent When I try to start a new session and update the values. Any advice would be great.