Bug #17688: Session Bug with register_globals off
| From: | php at hansbauer dot net | Date: | Tue, 11 Jun 2002 03:44:05 +0000 |
| Subject: | Bug #17688: Session Bug with register_globals off | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-10060@lists.php.net to get a copy of this message | ||
From: php@hansbauer.net
Operating system: Windows 2000 Apache
PHP version: 4.1.2
PHP Bug Type: Session related
Bug description: Session Bug with register_globals off
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 bug report at http://bugs.php.net/?id=17688&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17688&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17688&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17688&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17688&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17688&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17688&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17688&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17688&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17688&r=globals