ID:               19022
 Comment by:       guertin at brucemaudesign dot com
 Reported By:      phpbugs at mx4k dot com
 Status:           No Feedback
 Bug Type:         Session related
 Operating System: linux (rh7.3), apache 1.3.26
 PHP Version:      4.2.2
 New Comment:

Experiencing the same problems here... out of the blue.  

Machine was running beautifully then all of a sudden it 

stopped.  No one can log in.  I changed nothing... there 

was not so much as a shell login on the machine for 30+ 

days.



sessions seem very fragile (as do many things in php 

lately, it's getting scarier to keep running in 

production environment).



[Fri Mar 26 16:14:04 2004] [error] PHP Warning:  Failed 

to write session data (files). Please verify that the 

current setting of session.save_path is correct (/

websites/sessions) in Unknown on line 0



I've done so far almost everything suggested that worked 

for others in here, none of it solved the problems.  I 

can tell you that:



1) it's NOT a permissions problem, my user running 

apache/php has full write access to /tmp

2) it's not required for this user to have a home 

directory.  For those that need to do this to 'fix' the 

problem, you OS is broken! (complain to your vendors)

3) it works for exactly one session.  The first login 

works fine and it seems that from there on in PHP tries 

to use the same session ID for everyone ?

4) manually deleting the existing session file allows on 

single login again after this.



Trying to track down more things. Really perplexing as 

to why/how it stopped working when it ran fine for a 8+ 

months.


Previous Comments:
------------------------------------------------------------------------

[2004-03-11 01:05:01] haccel at email dot com

After weeks of testing, I have fixed the problem at least for me.



The problem is the Zend Optimizer was corrupting/wiping (presumably)
the session data. Turning Zend Optimizer off completely fixed the
problem. When I turned Zend Optimizer back on and rebooted the session
problem was back again, this is the first reproducible action for me so
far.



Would be interesting to know how many others with this problem have
Zend Optimizer running.

------------------------------------------------------------------------

[2004-03-01 20:15:09] stewart dot james at vu dot edu dot au

Just started to expience this after a shift to a new server.

php 4.3.3 on Debian Sarge





I get the error when I return to the site after logging out.



Looking at the cookie data the cookie data PHPSESSID is being set to
null, which my browser is recording in it's cookie database. Then on
return the site attempts to access informaiotn for PHPSESSID=(NULL)
which is what I think is causing the problem with this error.



Does anyone else see the same problem on their respective sites?



Stewart

------------------------------------------------------------------------

[2004-01-21 08:45:26] august24_70 at yahoo dot com

I was having the problem on OpenBSD 3.2, Apache 1.3.26, PHP 3.2.3 when
running phpBB. I deleted all my cookies and logged back in again and
the problem went.



I don't use cookies for handling sessions, I pass it in the URL. ie
session.use_trans_sid = 1

------------------------------------------------------------------------

[2004-01-19 21:02:22] haccel at email dot com

I also have been receiving this error since Jan 1st, 2004. Running on
Linux operating system, Apache version 1.3.29 (Unix), PHP version
4.3.3



My error log is full of these errors:



PHP Warning:  Unknown(): Failed to write session data (files). Please
verify that the current setting of session.save_path is correct
(/usr/home/asdwq1/sessions) in Unknown on line 0



PHP Warning:  session_start(): The session id contains invalid
characters, valid characters are only a-z, A-Z and 0-9 in
/usr/home/asdwq1/public_html/index.php on line 2



Line 2 of index.php = session_start();



Strange thing is it only happens some of the time. I use SID throughout
so how can php create a session id and then say on the next page it is
an invalid session id? I don't quite understand how it can be invalid
when php creates this upon the call of the first session_start().



$_SESSION vars are only used and it occurs where-ever I move the
session temp directory to.

------------------------------------------------------------------------

[2004-01-19 17:01:48] oliver at realnet dot org

I was having the same problem, failed to write session data files,
check your save path error.  Worked fine in Netscape 7.1, but not in IE
6.  I deleted my cookies, cleared history, deleted internet files, and
rebooted.  It worked like a charm after that.  I don't know how that
would affect it, but that's all I did... and like I say, it always
worked, everytime in Netscape 7.1.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19022

-- 
Edit this bug report at http://bugs.php.net/?id=19022&edit=1

Reply via email to