Re: Session bug?

From: Date: Sat, 14 Oct 2000 09:09:12 +0000
Subject: Re: Session bug?
Groups: php.dev 
Request: Send a blank email to php-dev+get-34996@lists.php.net to get a copy of this message
I found the BUG!!! I was using the code below WITH phpinfo(); phpinfo(); seems to hose the whole session thing... Use the same code.. add phpinfo(); to the end to reproduce my errors
From: "Richard Thomas" <cyberlotnet@hotmail.com> To: php-dev@lists.php.net Subject: [PHP-DEV] Session bug? Date: Sat, 14 Oct 2000 04:48:32 EDT Hey, I did a bug report on this but wanted to verify it was not my own stupidity... Compile with --enable-trans-sid Use the final example session code, MINUS THE <?=SID?> since you shouldnt need sid numbers with --enable-trans-sid.. PHP does auto add the SID information to ALL links.. BUT if you turn cookies off the count gets hosed... If you add 1 to $count, it saves $count + 2, if you * 2 to $count it saves $count * 4.. I have verified in the session files that is during Saving the information that the problem occours.. and ONLY DURING MATH OPERATIONS.. Turn cookies back on and code starts working fine again.. <?php session_register ("count"); $count++; ?> Hello visitor, you have seen this page <? echo $count; ?> times.<p> To continue, <A HREF="nextpage.php?">click here</A> _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
_________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.

« previous php.dev (#34996) next »