Re: Permission problem with Sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

Am Mittwoch, den 04.05.2016, 08:24 -0400 schrieb Tedd Sperling:
> Hi Gang:
> 
> At the college where I teach, twice I’ve had my PHP scripts fail because the Server reports the Session temp directory doesn't have the permissions to write the Session id. In other words, my session_start() fails to work, but DID indeed work!
> 
> Also twice, after reporting the problem the techs find the problem fixed before they investigate. It makes me look like I am reporting a non-problem, but the problem does happen.
> 
> I know that sessions are generated by the server and stored somewhere (temp directory) and they are the means for continued communication between the Server and the Browser.
> 
> So my questions are: 
> 
> a) Where does that temp directory reside on the Server?
> b) What could cause the problem I’m reporting?
> c) What could make this phenomena come and go apparently without anyone doing anything? That doesn’t make sense.
> 
> Thanks in advance for your comments/suggestions/expertise.

the session save path on my OpenSuSE from the php.ini
session.save_path = "/var/lib/php5"

the rights:
drwxr-xr-x  2 wwwrun    root     802816  4. Mai 13:39 php5

the apache user runs with wwwrun.www 

so when something is not correct with the permission or user then you
are not able to write to this directory

maybe someone set a php_value in the apache config to a wrong session
path.



BR/Torsten



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux