php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65892 session.save_path
Submitted: 2013-10-14 04:16 UTC Modified: 2013-10-14 04:32 UTC
From: eduosi at 163 dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: master-Git-2013-10-14 (Git) OS:
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: eduosi at 163 dot com
New email:
PHP Version: OS:

 

 [2013-10-14 04:16 UTC] eduosi at 163 dot com
Description:
------------
When the specified session.save_path parameter N.
For example,session_save_path("2;D:/session").

When then open session file(e.g D:/session\4\m\sess_4mmcpp8o66b532jm0a18h38if5), will go E_WARNING: open(%s, O_RDWR) failed ...:, directory "D:/session\4\m" will not automatically created.

Test script:
---------------
session_save_path("2;D:/session")


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-14 04:32 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2013-10-14 04:32 UTC] requinix@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

See the session.save_path setting:

>In order to use N you must create all of these directories before use. A small
>shell script exists in ext/session to do this, it's called mod_files.sh, with a
>Windows version called mod_files.bat.

http://www.php.net/session.configuration#ini.session.save-path
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 20:01:35 2025 UTC