Having issues with $_SESSION[‘var’]’s not being saved after you redirect the user via header()? Add exit(); after the header() call.
Example:
$_SESSION['emailed'] = true;
header('Location: response.php');
exit();
Cheers!
Having issues with $_SESSION[‘var’]’s not being saved after you redirect the user via header()? Add exit(); after the header() call.
Example:
$_SESSION['emailed'] = true;
header('Location: response.php');
exit();
Cheers!
Thanks for this. It helped with a major problem I was having!