php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14552 PowerPC users see blank pages after session start
Submitted: 2001-12-16 17:21 UTC Modified: 2001-12-17 06:40 UTC
From: lecoq_tr at hotmail dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
 [2001-12-16 17:21 UTC] lecoq_tr at hotmail dot com
Today I received 3 complaints, they all are Mac PowerPC users with Internet Explorer 5.xx... Problem is that they see a blank page after trying to login.

First lines of the script starts like this :

<?
$loginstamp=time();
session_register("user");
session_register("pass");
***(some more session_register()s here)
?>

<HTML><HEAD>
*** And goes on like this...

I can access with a PC. Seeing that they get a blank page I thought there might be something wrong with headers(Some incompatibility with Mac??). I pasted the headers I received below (headers after logging on with a PC).. I have no idea what the text 180 at the bottom is, page source starts after it.

HTTP/1.1 200 OK
Date: Sun, 16 Dec 2001 21:32:32 GMT
Server: Apache
Set-Cookie: Apache=217.31.225.13.3850100853835297; path=/; expires=Sun, 10-Mar-02 21:32:32 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=50
Transfer-Encoding: chunked
Content-Type: text/html
Connection: close

180

<HTML><HEAD>
****and the rest of the HTML code below this line...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-16 17:23 UTC] derick@php.net
Can you try it with the latest version, php 4.1.0?

Derick
 [2001-12-16 18:18 UTC] daniel@php.net
The HTT-Protocol in version 1.1 sends data _chunked_ (Transfer-Encoding: chunked). Every chunk is accompanied with it's size info, and this 180 resembles very suspiciously this delimitor.

In case this should turn out to be the problem, there are three factors which could be responsible for this problem:

- The webserver (low probability)
- PHP (impossible, as PHP has no influence on the overlying HTTP/1.1 layer)
- Your webbrowser (HIGH probability. Please ask your users to check your site with different webbrowsers. There are plenty of them: icab, IE, mozilla ..)

Also, try to check the script-output with http://www.ethereal.com/ . This sometimes helps alot.

Kind Regards,
  Daniel Lorch
 [2001-12-17 06:01 UTC] lecoq_tr at hotmail dot com
It seems problem is not related with "Transfer-Encoding: chunked", because as to the site logs they can see the login form (previous page before the problem page with session).. And that page also generates "Transfer-Encoding: chunked" in headers (as you said, length of page content follows the header information)

Problem page sends the header below as an extra :

Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

These lines appear only with sessions, they may be imcompatible with Mac's IE5.x. Is there a way to disable Cache-Control for PHP scripts? 10s of people would refuse to download Netscape. And I'm not able to run 4.1.0 version for a test (apxs problem...) Our webserver is Apache 1.13.20 RedHat RPM release.



 [2001-12-17 06:21 UTC] lecoq_tr at hotmail dot com
I found similar records in the database. No solution found.
http://bugs.php.net/bug.php?id=13601
http://bugs.php.net/bug.php?id=10472
http://bugs.php.net/bug.php?id=8556

I plan to use session_cache_limiter() to search for a solution

 [2001-12-17 06:40 UTC] lecoq_tr at hotmail dot com
http://www.php.net/manual/en/function.session-cache-limiter.php

I read the user comments from the URL above...
I believe my problem is not a PHP bug, MSIE5.x has problems with headers which session generates...
People recommend to add the line below before starting a session :
session_cache_limiter('private');

Thank you for taking time...

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 17:01:27 2024 UTC