#26757 [Opn]: session.save_path should default to %TEMP%
ID: 26757
User updated by: unknown at simplemachines dot org
-Summary: session.save_path should default to $TEMP
Reported By: unknown at simplemachines dot org
Status: Open
Bug Type: Feature/Change Request
Operating System: Windows
-PHP Version: Irrelevant
+PHP Version: 4CVS, 5CVS
New Comment:
Maybe someone will read this if I say 4CVS, 5CVS instead of Irrelevant.
Previous Comments:
------------------------------------------------------------------------
[2004-01-14 00:44:48] unknown at simplemachines dot org
A diff for a recent cvs version can be found here:
http://unknown.network32.net/php_session_save_path_diff.txt
This diff has the following affects:
- any call to session_start() or session_save_path() will set the
setting to the Windows/*nix temporary directory, unless it's otherwise
specified.
- if ini_get('session.save_path') is called before this happens, it
will return an empty string; afterward, it will return the path used.
I have tested this on Windows 2003 Server, in ISAPI/CGI, with and
without using user-defined session functions.
It should work on Linux/Unix as well, although I haven't had a chance
to recompile PHP on any Linux/Unix machine with this patch. It uses
the same method to get the path that upload_tmp_dir uses, however.
Thank you,
-[Unknown]
------------------------------------------------------------------------
[2003-12-31 15:19:49] unknown at simplemachines dot org
Description:
------------
I would like to request that, much like upload_tmp_dir, PHP be changed
so that session.save_path defaults to the system's default temp
directory.
The reason for this is simple; countless times, people on Windows
machines have problems with sessions because they do not set the path
in php.ini. (even with how documented it is.) I mean - I am a
developer for forum software, and more than half of the reported
installation problems are caused by this one issue alone.
Thus, with this change, php.ini-dist and php.ini-recommended could have
no path set by default, and it would work fine on both operating
systems without any changes.
I realize this is basically a dupe of bug 25574, but in that case, the
reporter misread the manual. I am asking that it be changed to work.
http://bugs.php.net/bug.php?id=25574
Thank you,
Unknown W. Brackets
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26757&edit=1
Thread (8 messages)