php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18156 When using sessions, no data is sent to Mozilla 1.0
Submitted: 2002-07-04 04:21 UTC Modified: 2002-08-19 14:41 UTC
From: jonny at sanriowasteland dot net Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.0CVS-2002-07-04 OS: GNU Linux (Debian Woody)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jonny at sanriowasteland dot net
New email:
PHP Version: OS:

 

 [2002-07-04 04:21 UTC] jonny at sanriowasteland dot net
If I have a test script (session.php)
<?php
session_start();
if (empty($_SESSION['count'])) $_SESSION['count'] = 0;
$_SESSION['count']++;

echo "Counter: ".($_SESSION['count']);
?>
And I go http://www.myserver.net/session.php in Mozilla 1.0, either I will get a dialog telling me that the document contains no data or, aboslutely nothing will happen.

It seems the browser is being sent a cookie, afterwards, it seems like the response just... disappears.

Changing error reporting to e_all, and adding output buffering does not change anything.

There is nothing in the apache error or request logs to suggest anything is amiss

Internet Explorer 6.0 and Netscape 4.7 all display pages as expected.

Getting the seseion ID from the cookie that mozilla is sent, and than displaying that session file (on the server) shows the php script is being executed.

Server:  Debian Woody, with Apache 1.3.26, PHP CVS on i386 
Client:  Windows NT SP 6a, Mozilla 1.0 (Build ID: 2002053012)

php configure line:

./configure' '--with-srm=/usr/local/srm' '--with-layout=GNU' '--disable-static' '--with-apxs=/usr/bin/apxs' '--disable-cli' '--with-config-file-path=/etc/php4/apache' '--enable-memory-limit' '--enable-track-vars' '--with-mysql=/usr' '--with-exif' '--enable-bcmath' '--with-gd=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-zlib=/usr' '--with-curl' '--with-exif' '--enable-sockets'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-04 04:33 UTC] sander@php.net
Are you using the CGI version of PHP? Then this might have been fixed in CVS ten minutes ago. Can you try the latest CVS, or a snapshot from http://snaps.php.net (the fix didn't make it into 200207040000, so please wait until a next snapshot has been packed).
 [2002-07-04 16:48 UTC] jonny at sanriowasteland dot net
I am using the apache module, with the cvs as of (roughly) 4:00 am.. so it was the latest cvs ;)
 [2002-07-18 07:35 UTC] jonny at sanriowasteland dot net
After further tesing, it seems this is not a PHP bug, but rather, a Mzilla bug.
 [2002-08-19 08:11 UTC] erwin at dexus dot nl
So now what?
Does anybody know of a workaround?
I want to be able to give Mozilla-users a session. ;-)

I am not sure wether to post this to PHP or Mozilla gang, but I found out that AFTER you delete the (first) session in Mozilla by hand, things seems to work fine.
It's just like the session.expires isn't implemented right for "end of session" or 0.
 [2002-08-19 14:41 UTC] jonny at sanriowasteland dot net
For thoes that are interested, the following bug reports apply to this issue:

http://bugzilla.mozilla.org/show_bug.cgi?id=150222
http://bugzilla.mozilla.org/show_bug.cgi?id=139879
http://bugzilla.mozilla.org/show_bug.cgi?id=154818

(there are a few more that may, or may not apply.)
 [2003-08-10 21:23 UTC] mtv2002 at pisem dot net
I use Mozilla-1.4 on Windows-98.
I've written a simple script:
 <?php
  session_start();
  $_SESSION['Text']='Some text';
  echo $_SESSION['Text'];
 ?>
On one server (FreeBSD,Apache,PHP-4.22 as CGI) it works as expected both in IE and Mozilla.
On another server (Linux, Apache 1.3.27, PHP-4.32 as Apache module) Mozilla does not display output, actually it refuses to transfer it from the server.
I reported the bug at Mozilla's site (bug #214921), but it seems nobody knows yet what causes the problem - Mozilla, Apache, PHP or Linux.
Does anybody know the solution?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 23:01:30 2024 UTC