[nycphp-talk] transparent session ID not working
Chris Shiflett
shiflett at php.net
Mon Aug 15 19:26:23 EDT 2005
Rolan Yang wrote:
> I try my best not to use header redirects if possible. Things get kind
> of hairy sometimes.
[snip]
> header("Location:webform.php").
Whenever someone mentions inconsistent behavior with the use of the
Location header, it always seems to be because they do not format the
header properly. Try this:
header('Location: http://example.org/webform.php');
The header() function is great - PHP gives us a lot of control over the
exact HTTP response that we send. However, this is also an opportunity
for us to screw up the format. Be careful. :-)
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
More information about the talk
mailing list