Re: [PHP] $_SESSION variable gets lost on FORM action
- From: dreasi0n.php.net@xxxxxxxxx (Nuno Oliveira)
- Date: Wed, 17 Jan 2007 19:06:16 +0000
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
.
- Follow-Ups:
- Re: [PHP] $_SESSION variable gets lost on FORM action
- From: Roman Neuhauser
- Re: [PHP] $_SESSION variable gets lost on FORM action
- References:
- $_SESSION variable gets lost on FORM action
- From: Nuno Oliveira
- Re: [PHP] $_SESSION variable gets lost on FORM action
- From: "David Giragosian"
- Re: [PHP] $_SESSION variable gets lost on FORM action
- From: Nuno Oliveira
- $_SESSION variable gets lost on FORM action
- Prev by Date: RE: [PHP] One last try at this!
- Next by Date: Re: [PHP] web form data to arrays?
- Previous by thread: Re: [PHP] $_SESSION variable gets lost on FORM action
- Next by thread: Re: [PHP] $_SESSION variable gets lost on FORM action
- Index(es):
Relevant Pages
|