PHP 4.0 Bug #6454 Updated: Netscape Document Contained No Data when using header()
| From: | sniper@php.net | Date: | Thu, 09 Nov 2000 02:17:50 +0000 |
| Subject: | PHP 4.0 Bug #6454 Updated: Netscape Document Contained No Data when using header() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37493@lists.php.net to get a copy of this message | ||
ID: 6454
Updated by: sniper
Reported By: keith@neverwillbes.com
Status: Closed
Bug Type: *General Issues
Assigned To:
Comments:
You propably had disabled cookies in Netscape.
And if you use header() to redirect and want the session id
to follow, you should add it 'manually'.
This is no bug. Closed.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-08-31 01:09:41] keith@neverwillbes.com
In my login function I have a section of code,
case "logon_succeeded":
header ( $redir_url );
exit;
break;
This is part of a larger switch statement. The weird thing is that when you using netscape I get
"Document Contained No Data..." when I try and login. If I click ok and hit the submit
button again, it works fine. IE works fine the first time. The weird thing is if I print out the
contents of $redir_url and then put the actual string in there, something like:
Location: http://www.foobar.com/my/index.php?PHPSESSID=4a0e1db7d5efb2beee829473c82c5120
instead of the variable that has the exact same text, it works fine. I don't get why. If I load
the $redir_url with Location: http://www.php.net
it works fine as well. Maybe it is a problem with the session_variable stuff. Why does it work with
IE and why does it work with netscape on the second submit. I had the problem with 4.0.1pl2 and with
the new 4.0.2
Thanks,
keith vance
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6454