Code:
header('Location: index.php' );
I have found a solution, if i write exit () after the header() my $_SESSION isn't resetted.
Does anyone know why?
Thanks
Moderator: General Moderators
I didn't know thisIf you do not put exit; after the redirect, the rest of the code will be executed.