RE: [PHP] session_start
| From: | John W. Holmes | Date: | Thu, 27 Feb 2003 03:55:33 +0000 |
| Subject: | RE: [PHP] session_start | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137338@lists.php.net to get a copy of this message | ||
> At 01:36 27.02.2003, Mr Percival said:
> --------------------[snip]--------------------
> >What I was hoping to do was to be able to give a error message if the
> server
> >was having this problem, but in order to do that I was needing a way
of
> >knowing if it was because the session_start failed or users who didnt
> have
> >cookies turned on.
> >
> >I probably just need to get a new host since these disk full errors
> happen
> >regularly. :(
> --------------------[snip]--------------------
>
> session_start() cannot fail - the failure happens after the end of
your
> influence.
>
> Ask these guys at your webhost to move /tmp to another partition, or
> _at_least_ to have session.save_path point to a partition that doesn't
get
> exhausted too quickly.
Or use session_save_path() in your script to use a directory of your
own. Make sure you implement your own cleanup, though.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/