The HTTP/1.1 spec says that anything sent as a location header must be an absolute URI. Apache will sometimes segfault if you don't.
If a specific redirect() function were to be implemented, would it be worth examining the URL passed into the function to see if it is absolute (e.g. if it contains '://') and if it isn't, making it absolute by adding $_SEVER['HTTP_HOST']? --Mike ----- Original Message ----- From: "Marcus Börger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Chris Shiflett" <[EMAIL PROTECTED]>; "rasmus Lerdorf" <[EMAIL PROTECTED]> Sent: Friday, June 21, 2002 9:42 AM Subject: Re: [PHP-DEV] Seeking Comments - Regarding header() What about a new function say redirect(url, response) that also handles sessions automatically (you have to add the session id to the url to keep it when coolies are disabled by user? -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php