You are here: Re: session-based authentication code not working on shared host « PHP Programming Language « IT news, forums, messages
Re: session-based authentication code not working on shared host

Posted by Rik on 07/28/06 00:47

awebguynow wrote:
> I'm finding a few sources of problems in the CGI log ( of shared host
> ) Is this an Apache log, filtered by errors on my domain ?
>
> Hoping to clean up and run error-free asap.
> I had a few fatal errors, based on require("foo"), which I can fix,
> but I'm concerned with this one at this point. see below
>
> PHP Warning: Unknown: Failed to write session data (files). Please
> verify that the current setting of session.save_path is correct
> (/var/php_sessions) in Unknown on line 0
> PHP Warning: Unknown:
> open(/var/php_sessions/sess_cf7ce45dd2a55dd3be34a1a666321330, O_RDWR)
> failed: No such file or directory (2) in Unknown on line 0
>
> seems pretty obvious, this is a hosting issue.

Well, a configuration issue:

<?php
session_save_path('/a/path/that/does/exists');
?>

Which should be a path outside of the webroot (or at least protected by an
..htaccess file) that has writing permissions.

Further information to be found at:
http://www.php.net/manual/en/ref.session.php

Grtz,
--
Rik Wasmus

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация