Bug #16734: Session is not setting state
| From: | michael at egplant dot ws | Date: | Mon, 22 Apr 2002 17:33:32 +0000 |
| Subject: | Bug #16734: Session is not setting state | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-5574@lists.php.net to get a copy of this message | ||
From: michael@egplant.ws
Operating system: Windows 2000
PHP version: 4.1.2
PHP Bug Type: Session related
Bug description: Session is not setting state
When running the following script with register_globals off or on, i get
proper results (the counter increments) under my production server
(freebsd 4.5, php 4.1.2). Under my devoplement box (Win 2k), I get
nothing:
<?php
session_start();
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
echo $_SESSION['count'];
?>
Under win2k the session file is created in the proper directory, but is
not populated with the registered variables. The cookie is set on the
client side.
--
Edit bug report at http://bugs.php.net/?id=16734&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16734&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16734&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16734&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16734&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16734&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16734&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16734&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16734&r=submittedtwice