#21092 [NEW]: No $_SESSION[] data saved
| From: | jeanfrederic at loiseau dot org | Date: | Thu, 19 Dec 2002 09:26:50 +0000 |
| Subject: | #21092 [NEW]: No $_SESSION[] data saved | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-28012@lists.php.net to get a copy of this message | ||
From: jeanfrederic@loiseau.org
Operating system: Windows XP
PHP version: 4.2.3
PHP Bug Type: Session related
Bug description: No $_SESSION[] data saved
I'm just wondering, why this code is not working
<?php
echo session_start();
if (!$_SESSION['toto']) $_SESSION['toto']=0;
else $_SESSION['toto']++;
echo "Toto = ".$_SESSION['toto'];
?>
under Windows XP + Php 4.2.3 + Apache 1.3.24
session_start() return TRUE, and the session file is created with the
correct content, but this content stay at value 0 for 'toto' between
pages.
I have tried the same thing under linux... same issue...
Php Config :
------------
Session Support enabled
session.auto_start Off
session.cache_expire 180
session.cache_limiter nocache
session.cookie_domain no value
session.cookie_lifetime 0
session.cookie_path /
session.cookie_secure Off
session.entropy_file no value
session.entropy_length 0
session.gc_maxlifetime 1440
session.gc_probability 1
session.name PHPSESSID
session.referer_check no value
session.save_handler files
session.save_path C:\winxp\temp
session.serialize_handler php
session.use_cookies On
session.use_trans_sid 0
Regards,
Jean-Frederic
--
Edit bug report at http://bugs.php.net/?id=21092&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21092&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21092&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21092&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21092&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21092&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21092&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21092&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21092&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21092&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21092&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21092&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21092&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21092&r=isapi