Why exit doesn't reset the Session.
Posted: Tue Dec 21, 2010 7:31 am
Hi, I have a problem with a redirection. I want to redirect with the header function(), but if i use this function my $_SESSION is resetted.
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
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