RE: [PHP] session.save_path
| From: | Ford, Mike [LSS] | Date: | Wed, 21 May 2003 15:17:02 +0000 |
| Subject: | RE: [PHP] session.save_path | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148423@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Catalin Trifu [mailto:catalin@isp-software.de]
> Sent: 21 May 2003 16:00
>
> As the PHP manual says:
> session.save_path defines the argument which is passed to the
> save handler.
> If you choose the default files handler, this is the path
> where the files
> are created. Defaults to /tmp. If session.save_path's path
> depth is more
> than 2, garbage collection will not be performed
This is actually somewhat out of date information. Firstly, that's not what was meant by
"path depth", and secondly the 2-level proviso is incorrect anyway. There have been
recent updates to the php.ini file which will be included in distributions which include revised
information -- this can be found at http://cvs.php.net/co.php/php4/php.ini-dist.
> The way I see it, this means I couldn't possibly save
> the sessions in let's say
> /www/mywebsite.com/tmp/sessions/ because the
> the path depth is more than 2, and the garbage collection
> wouldn't do it's
> job.
You should have no problem at all using this path.
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211