RE: [PHP] header() refresh vs location

2003-10-15 Thread Ford, Mike [LSS]
On 14 October 2003 20:11, Chris Hubbard contributed these pearls of wisdom: All, I have done a number of searches. I have read the online documentation and user supplied comments. I recently ran into problem using: -some code here to create session and set variables- header('Location:

[PHP] header() refresh vs location

2003-10-14 Thread Chris Hubbard
All, I have done a number of searches. I have read the online documentation and user supplied comments. I recently ran into problem using: -some code here to create session and set variables- header('Location: index.php'); where the sessions would sometimes get lost, they wouldn't make it to

Re: [PHP] header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Chris Hubbard [EMAIL PROTECTED] wrote: header('Location: index.php'); The Location header requires an absolute URL. This example demonstrates a violation of the specification and can have unknown results. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook

Re: [PHP] header() refresh vs location

2003-10-14 Thread Matt Babineau
In this example, index.php would be a violation i think. however you don't need to provide an absolute URL, you could provide / or ever /index.php I say this because the header specifying the Host had already been sent. so you could do Location: Host + Relative_URL or Location: Relative_URL

Re: [PHP] header() refresh vs location

2003-10-14 Thread Chris Shiflett
--- Matt Babineau [EMAIL PROTECTED] wrote: In this example, index.php would be a violation i think. however you don't need to provide an absolute URL, you could provide / or ever /index.php I say this because the header specifying the Host had already been sent. In HTTP/1.1, the Host header