Re: $_SESSION variable gets lost on FORM action

From: Date: Wed, 17 Jan 2007 19:06:16 +0000
Subject: Re: $_SESSION variable gets lost on FORM action
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-247253@lists.php.net to get a copy of this message
Stut wrote:
Redirecting using a Location header is not the only thing you can do with the header() function. It will never end processing of the script no matter what you pass to it. The example on the manual page for the header() function says as much (http://php.net/header), you read that right? <?php header("Location: http://www.example.com/"); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?> -Stut
Well, I feel like a du***ss! No, I hadn't read that. I promisse, and this one is to keep, I won't post to this list again without dedicate enough time to the problem, at least to read the manual. Anyway, thank you for confirm what I should have known in advance and also for remembering me that PHP developers have a PHP manual for PHP users... Thanks

« previous php.general (#247253) next »