Re: PHP 4.0 Bug #8562 Updated: Sessions fail with Netscape

From: Date: Sun, 07 Jan 2001 10:14:46 +0000
Subject: Re: PHP 4.0 Bug #8562 Updated: Sessions fail with Netscape
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-43226@lists.php.net to get a copy of this message
yes. I tried with Netscape 6 and it worked fine. I'll try to gather up some code when I have time.. ----- Original Message ----- From: "Bug Database" <php-dev@lists.php.net> To: <pojanen@pp.htv.fi> Sent: Sunday, January 07, 2001 3:24 AM Subject: PHP 4.0 Bug #8562 Updated: Sessions fail with Netscape > ID: 8562 > Updated by: sniper > Reported By: pojanen@pp.htv.fi > Old-Status: Open > Status: Feedback > Bug Type: *Session related > Assigned To: > Comments: > > Please add a complete but short script which can be used to reproduce this > problem. > > Have you tried newer Netscape versions? 4.08 is quite old. > > --Jani > > > Previous Comments: > -------------------------------------------------------------------------- - > > [2001-01-05 04:31:56] pojanen@pp.htv.fi > PHP 4.0.3 was very buggy with sessions. PHP 4.0.4 works a lot better but I think I have discovered a bug again. > > I can't find anything wrong in my code... the bug is very weird. It only happens with Netscape. Netscape Navigator 4.08. > > When I try to login (with Netscape 4.08) in my webshop using a form generated by the webshop -> sessions doesn't get saved correctly. But when I press Reload -> the problem will be corrected. With Internet Explorer this works fine at the first time. > > Here is the incorrect session data: > > SESSION|a:2:{s:12:"ShoppingCart";O:12:"shoppingcart":3:{s:8:"products";a:0:{ }s:9:"discounts";a:0:{}s:5:"owner";i:0;}s:12:"ClientConfig";O:12:"clientconf ig":3:{s:12:"showPictures";b:1;s:14:"productsOnPage";i:10;s:8:"currency";s:3 :"FIM";}} > > Here is the correct one (after I press reload or first time with IE): > > SESSION|a:2:{s:12:"ShoppingCart";O:12:"shoppingcart":3:{s:8:"products";a:0:{ }s:9:"discounts";a:0:{}s:5:"owner";s:1:"2";}s:12:"ClientConfig";O:12:"client config":3:{s:12:"showPictures";b:1;s:14:"productsOnPage";s:1:"8";s:8:"curren cy";s:3:"FIM";}} > > They look pretty same but they are not. owner values should be 2 like in the second example and productsOnPage should be 8.. 0 and 10 are defaults (in the first one) but they are modified to 2 and 8. Somehow PHP doesn't save the modified values.. it saves the first values which are made by my class constructor. (I use $SESSION array which contains two classes) > > This is very very STRANGE. Browser shouldn't have anything to do with it but it does. I do no browser checkups so it must be in PHP. If cookies are enabled/disabled it does the same thing. > > And btw. This works correctly in PHP 4.0. but not in 4.03 & 4.04. > > What could be wrong ? > > -------------------------------------------------------------------------- - > > > Full Bug description available at: http://bugs.php.net/?id=8562 >

« previous php.dev (#43226) next »