Bug #17688 Updated: Session Bug with register_globals off
| From: | php at hansbauer dot net | Date: | Tue, 11 Jun 2002 03:49:56 +0000 |
| Subject: | Bug #17688 Updated: Session Bug with register_globals off | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10061@lists.php.net to get a copy of this message | ||
ID: 17688
Updated by: php@hansbauer.net
Reported By: php@hansbauer.net
-Status: Open
+Status: Closed
Bug Type: Session related
Operating System: Windows 2000 Apache
PHP Version: 4.1.2
New Comment:
Just found out that bug has already been reported. Sorry!
Previous Comments:
------------------------------------------------------------------------
[2002-06-10 23:44:04] php@hansbauer.net
Session wont work under Windows when register_globals is off.
Following example works with register_globals on but when
regist_globals is not on it won't work.
The value of register_globals has been changed in .htaccess.
The same script works perfectly under php4.06 under linux with either
register_globals on or off.
***File test.php***
<?php
session_start();
$count = 1;
session_register('count');
echo $count;
?>
<A HREF="test2.php?<?php echo SID?>">click here</A>
***File test2.php***
<?php
session_start();
$count = $HTTP_SESSION_VARS['count'];
$count = $count + 1;
echo $count; ?>
<A HREF="test2.php?<?php echo SID?>">click here</A>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17688&edit=1