Chrisnor wrote:
> Session data is stored in a folder phpsessiondata which
is in the root
> directory of the hard drive /phpsessiondata. The folder
has read/write
> permissions for everyone and the apache user group 'www'
is the owner of the
> session files. Writing the files seems to work ok but
not retrieving and
> reading! Should I configure something in httpd.conf?
This is an apple mac
> system using enthropy php 5, which has the standard
php.ini .
The Mac package from entropy.ch doesn't set a value for
session.save_path, so session files are stored by default in
/var/tmp.
According to php.ini, the file storage module creates session
files
using permissions of 600 by default. I've confirmed this by
looking at
the session files on my Mac in Terminal. They have just read
and write
permission (-rw-------), are owned by www, and the group is
wheel.
Presumably you have your own reasons for wanting to change
the default
location for session files, but it sounds as though you are
making
things less secure by creating a folder with such an obvious
name and
global read/write permissions.
I use a Mac mainly for testing purposes for my books, so
don't have the
in-depth knowledge that a regular Mac/PHP user might have.
However, I'm
pretty sure that changing httpd.conf would do nothing to
solve your
situation. You may be better off reverting to the default
location for
session files, and confirming that your pages work as
expected. Then try
again with your custom setup. If it still doesn't work,
asking questions
in the forum at entropy.ch may get a more knowledgeable
response.
--
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/