|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36782 session.save_handler user
Submitted: 2006-03-18 15:58 UTC Modified: 2006-03-26 01:00 UTC
From: webmaster at serverman dot de Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.4.2 OS: Suse 9.0
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: webmaster at serverman dot de
New email:
PHP Version: OS:


 [2006-03-18 15:58 UTC] webmaster at serverman dot de
on Suse 9.0 using sassion.save_handler user and session.save_path usr_webxx_xx leads to an open_basedir restriction.

Warning: Unknown(): open_basedir restriction in effect.File(usr_webxx_xx) is not within the allowed path(s):

Seems as user in Php.ini is no longer recognized. Downgrading with the same compile string to 4.3.11,  sessions are correct stored in datebase usr_webxx_xx.

With 4.4.2 open_basedir with same vhost entries. 

Phpinfo shows correctly session.save_handlers files user mm

Reproduce code:
Try to store sessions in database with

session.save_handler user
session.save_path usr_webxx_xx  <-- standing for your database.

The used code works perfect with 4.3.11

Expected result:
Storing sessions to Database.

Actual result:
Open_basedir restrictions for files <-- although user is used


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-18 18:12 UTC]
What is the value of open_basedir directive in phpinfo() and which file (usr_webxx_xx) are you trying to open?
 [2006-03-18 18:27 UTC] webmaster at serverman dot de
i don?t use session.save_handler files.

i use session-save_handler user 

usr_webxx_xx is database
 [2006-03-18 18:34 UTC]
I thought the question is quite clear..
 [2006-03-18 18:35 UTC]
Change open_basedir to include approriate directories.
No bug here.
 [2006-03-18 18:41 UTC] webmaster at serverman dot de

Just look
 [2006-03-18 18:42 UTC] webmaster at serverman dot de
u mean give open_basedir to

/var/lib/mysql/usr_webxx_xx  ?
 [2006-03-18 19:15 UTC] webmaster at serverman dot de
Warning: Unknown(): open_basedir restriction in effect. File(usr_webxx_xx) is not within the allowed path(s): (/srv/www/htdocs/webxx/html/:/srv/www/htdocs/webxx/phptmp/:/srv/www/htdocs/webxx/files/:/srv/www/htdocs/webxx/atd/:/var/lib/mysql/usr_webxx_xx/) in Unknown on line 0

Sorry still the same with latest snapshot.
 [2006-03-18 19:19 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

 [2006-03-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Dec 04 09:01:26 2023 UTC