You are here: Re: [PHP] sessions not being stored : DAY 2 « PHP « IT news, forums, messages
Re: [PHP] sessions not being stored : DAY 2

Posted by Richard Lynch on 04/12/05 02:43

On Sat, April 9, 2005 8:25 am, Yuri Huitrón Alvarado said:
> but then what could be causing that the sessions are not being stored in
> /tmp/sess ?

It's POSSIBLE, but very unlikely, that 'whoami' is getting fooled into
printing 'root' and you're not really 'root'

I think I once saw phpinfo() print out 'root' when I knew damn well User
was set to 'www' -- But I think it somehow caught 'root' during the
startup phase of Apache before it forked into the User 'www' and was
displaying an incorrect value.

Even if you *are* (foolishly) running Apache as 'root' the session data
will not get stored in /tmp/sess if those directories do not exist.

Also, I suspect that if, say, 'root' gets prompted on the command line
before over-writing data or violating chmod settings of the owner/group of
a file (or directory) then I would not expect PHP to write to /tmp/sess

I'm not real clear on how/when 'root' user gets prompted with things like
"Override read-only access on xyz" but I've seen it in bash, so whatever
causes that will likely stump PHP.

This really *DOES* boil down to paths/permissions almost for sure.

And whatever you do, do *NOT* run Apache as 'root'!

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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