#30262 [NEW]: Session save path problem?
| From: | is01yj at student dot zsu dot edu dot cn | Date: | Tue, 28 Sep 2004 06:29:59 +0000 |
| Subject: | #30262 [NEW]: Session save path problem? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-66789@lists.php.net to get a copy of this message | ||
From: is01yj at student dot zsu dot edu dot cn
Operating system: Windows XP
PHP version: Irrelevant
PHP Bug Type: Session related
Bug description: Session save path problem?
Description:
------------
Usually, I install software into the folder "systemdisk/Program
Files/software".
So I install PHP (including 4.3.4, 4.3.9, 5.0.1) into "L:\Program
Files\PHP434\" and set session save path (in the installation wizard) as
"L:\Program Files\PHP434\sessiondata\".
Thus, I get the following Warning when I start session by calling
session_start().
However, if I change the session.save_path to "L:\temp", no warning will
be reported and session files can be saved correctly.
Reproduce code:
---------------
<?php
session_start();
?>
Expected result:
----------------
the code above should not generate any error or output, since it's placed
before any http output and session support is enabled.
Actual result:
--------------
Warning: session_start(): open(L:\Program
Files\PHP434\sessiondata\sess_bb1a6ba6b2111a38d6c2d88f65a5ff83, O_RDWR)
failed: No such file or directory (2) in
E:\Web\XinghaiConcertHall\Build\admin\verify.php on line 2
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at
E:\Web\XinghaiConcertHall\Build\admin\verify.php:2) in
E:\Web\XinghaiConcertHall\Build\admin\verify.php on line 2
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
E:\Web\XinghaiConcertHall\Build\admin\verify.php:2) in
E:\Web\XinghaiConcertHall\Build\admin\verify.php on line 2
--
Edit bug report at http://bugs.php.net/?id=30262&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30262&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30262&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30262&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30262&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30262&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30262&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30262&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30262&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30262&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30262&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30262&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30262&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30262&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30262&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30262&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30262&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30262&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30262&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30262&r=mysqlcfg