Re: Validation and session variables
| From: | Stuart Felenstein | Date: | Wed, 27 Oct 2004 17:26:27 +0000 |
| Subject: | Re: Validation and session variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200459@lists.php.net to get a copy of this message | ||
--- Chris Shiflett <shiflett@php.net> wrote:
> This is most likely due to your malformed Location
> header. It requires an
> absolute URL, and some browsers (notably several
> versions of IE, but there
> may be others) do not send the proper Cookie header
> when requesting the
> new URL if you use a relative one.
>
> So, the first thing to try is using a proper
> Location header:
>
> header('Location: http://example.org/success.php');
>
I'm ready for the fork in the eye now ! ;)
Moved session_start() to way on top.
Placed the following in the redirect area:
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
Header ('Location:
http://www.mysite.com/page2.php?'.SID);
}
?>
Following Jason's last post, based on my server using
4.3.8 I did not include the session_write_close()
This is defintely a tough one!
Stuart