php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30262 Session save path problem?
Submitted: 2004-09-28 08:29 UTC Modified: 2004-09-28 16:37 UTC
From: is01yj at student dot zsu dot edu dot cn Assigned: edink (profile)
Status: Not a bug Package: Session related
PHP Version: Irrelevant OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: is01yj at student dot zsu dot edu dot cn
New email:
PHP Version: OS:

 

 [2004-09-28 08:29 UTC] is01yj at student dot zsu dot edu dot cn
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-28 15:40 UTC] iliaa@php.net
Installer fails to modify php.ini? Or perhaps not putting the modified ini file in the correct path?
 [2004-09-28 16:37 UTC] edink@php.net
You have to make sure that your webserver can write to L:\Program Files\PHP434\sessiondata\ by setting correct file permissions for IUSR_MACHINENAME if you're running php under IIS.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC