I was wondering if it's possible to redirect a specific session after a background PHP script was done.
header("location: index.php");
$myboxes = $_POST['myCheckbox'];
error_log("location:index.php");
if(empty($myboxes))
{
error_log("You didn't select any boxes.");
}
else
{
$i = count($myboxes);
error_log("You selected $i box(es): ");
for($j = 0; $j < $i; $j++)
{
error_log($myboxes[$j] . " ");
}
header("location: sucess.php");
}
Is it possible to redirect/refresh someone after i already redirect him (and waiting for the background process to finish running).
Many Thanks