Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2000101

Re: [PHP-DEV] Session bug? From: Richard Thomas (cyberlotnet <email protected>)
Date: 10/14/00

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 <email protected>>
>To: php-dev <email protected>
>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 <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
>

_________________________________________________________________________
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 <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>