note 13776 added to ref.session.php

From: Date: Mon, 02 Jul 2001 19:57:16 +0000
Subject: note 13776 added to ref.session.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14919@lists.php.net to get a copy of this message
when using Netscape 4.7 for PC, and using the following code:<br><br> page1<br><br> <? session_start();<br> $count = 1;<br> session_register("count");<br> ?><br> <html><br> <body><br> This is the first time to the site. <a href="test2.php">test2</a><br> </body><br> </html><br><br> page2<br><br> <? session_start();<br> $count += 1;<br> session_register(count);<br> ?><br> <html><br> <body><br> You've been to this site <? print("$count"); ?> times.<br> </body><br> </html><br><br> anytime you select any other minimized application, (ie calculator) and then return to the browser window, the value of the $count variable has incremented by an additonal count in the source code but not on the screen. However, when you reload the screen/page, you will see the value 'jump' several values to 'catch-up'. (This is most noticable when incremented by several values). http://www.php.net/manual/en/ref.session.php

« previous php.notes (#14919) next »