Re: Validation and session variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Chris Shiflett <shiflett@xxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux