RE: [PHP4BETA] Session bug & other session questions...

From: Date: Sat, 22 Apr 2000 20:35:38 +0000
Subject: RE: [PHP4BETA] Session bug & other session questions...
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13925@lists.php.net to get a copy of this message
OK, see then the _real_ bug comes up. The one where the variables take on other values. That's why you need the 3 files. Can I now send you all 3 original files that were causing the first bug?!?! Do you see why you need all 3 now?! If you run the files (logon.php first) and enter a user and pass, submit and view the values on the next page. You'll notice that the values from the form override the values in the object after you run a method from the object passing in variables from the page. This is the original bug, and the one I was concerned about. (You'll have to put the auth.php file in a dir called "class" or, change the require statements on both files) // Seth -----Original Message----- From: thies@digicol.de [mailto:thies@digicol.de] Sent: Saturday, April 22, 2000 5:06 AM To: Seth Banks Cc: php4beta@lists.php.net Subject: Re: [PHP4BETA] Session bug & other session questions... On Fri, Apr 21, 2000 at 04:57:32PM -0700, Seth Banks wrote: > attached are the 2 files needed to reproduce bug... no bug here - *ofcourse* you have to make the class definition available to test2.php as well! (maybe using includes;) if you used error_reporting(-1) you would have seen that php complains about "Warning: Unserializing non-existant class: stdClass! No methods will be available! in /dot/dgs/tc/test2.php3 on line 2" your problem will dissapear if you prepend your class definition to test2.php as well! tc > > > On Fri, 21 Apr 2000 thies@digicol.de wrote: > > > from my point of view there's *no* difference if you keep > > state beween 2 loads of the same page or if two pages are > > involved! (and it's rather unlikely that i'm wrong in this > > point) > > > > if you need 2 pages - fine - send them to the list, but _please_ > > try to make it as short as possible - i'm sure we can help! > > > > tc > > > > > > > > > > that's the whole point of registering objects to the session, is it not? > > > > > > - seth > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net

Attachment: [application/octet-stream] logon.php
Attachment: [application/octet-stream] validate.php
Attachment: [application/octet-stream] auth.php
« previous php.version4 (#13925) next »