php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6454 Netscape Document Contained No Data when using header()
Submitted: 2000-08-31 01:09 UTC Modified: 2000-11-08 21:17 UTC
From: keith at neverwillbes dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.2 OS: Redhat 6.1
Private report: No CVE-ID: None
 [2000-08-31 01:09 UTC] keith at neverwillbes dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-08 21:17 UTC] sniper@php.net
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

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 01:01:30 2024 UTC