I\'ve got a script that sets some session values before redirecting to / using header().
/
header()
I\'ve read many posts about the $_SESSION
$_SESSION
header must be sent before session close
session_regenerate_id(true); header("Location: /"); // the header must be sent before session close session_write_close(); // here you could also use exit();