php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26726 Problems with session when normal page is reloaded
Submitted: 2003-12-27 11:02 UTC Modified: 2004-01-06 18:28 UTC
From: jonny at bndlg dot de Assigned:
Status: Not a bug Package: Session related
PHP Version: 4CVS-2003-12-27 (stable) OS: Linux, Debian 3.0 woody
Private report: No CVE-ID: None
 [2003-12-27 11:02 UTC] jonny at bndlg dot de
Description:
------------
Problem occurs if this page is reloaded for the third time. The first two times a new cookie is set with the same session id. The third time nothing happens any more - the loading of the page hangs.

It is even curious to me that there is another Set-Cookie request with the first reload of the page.

This behaviour started to occur with PHP-4.3.3, with PHP-4.3.2 everything works as expected.

The sessions itself work fine. Only this problem with the reload of pages occurs.

Here are my php.ini values for the session related stuff:

Registered save handlers  files user mm  
Directive Local Value Master Value 
session.auto_start Off Off 
session.bug_compat_42 On On 
session.bug_compat_warn On On 
session.cache_expire 180 180 
session.cache_limiter nocache nocache 
session.cookie_domain no value no value 
session.cookie_lifetime 0 0 
session.cookie_path / / 
session.cookie_secure Off Off 
session.entropy_file no value no value 
session.entropy_length 0 0 
session.gc_divisor 100 100 
session.gc_maxlifetime 1440 1440 
session.gc_probability 1 1 
session.name PHPSESSID PHPSESSID 
session.referer_check no value no value 
session.save_handler files files 
session.save_path /var/tmp/php-sessions /var/tmp/php-sessions 
session.serialize_handler php php 
session.use_cookies On On 
session.use_only_cookies On On 
session.use_trans_sid Off Off 


Reproduce code:
---------------
<?php

session_start();

print "TEST";

?>


Expected result:
----------------
No more Set-Cookie requests with the reloads of the page.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-01 20:54 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2004-01-04 10:23 UTC] jonny at bndlg dot de
Sorry, but I forgot to mention one thing. This behaviour only occurs if you use Internet Explorer and you enable cookie notifications. If you accept cookies automatically all works fine.

I use Internet Explorer 6.0 with the latest patches, but the behaviour depends on the PHP version. It only occurs with PHP >= 4.3.3.
 [2004-01-06 18:28 UTC] sniper@php.net
IE bug. (works fine with e.g. Mozilla)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 23:01:26 2024 UTC