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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: keith at neverwillbes dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Thu Oct 31 23:01:28 2024 UTC