#21503 [Com]: Failed to write session data (Files).

From: Date: Mon, 10 Mar 2003 15:33:15 +0000
Subject: #21503 [Com]: Failed to write session data (Files).
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35268@lists.php.net to get a copy of this message
ID: 21503 Comment by: g dot consorti at akosweb dot it Reported By: ccollins at totsp dot com Status: Open Bug Type: Session related Operating System: Red Hat Linux 7.3 - 2.4.18-18 PHP Version: 4.3.0 New Comment: I am experiencing exactly the same issue. Same PHP 4.3.0 with same php.ini, Linux version 2.4.20 Tried with these two scripts: // --- start of page1.php <? error_reporting (E_ALL); session_start(); echo session_name()."=".session_id(); global $id_logged; session_register ("id_logged"); $id_logged=666; ?> <html> <head> </head> <body> <a href="page2.php?<?echo session_name()."=".session_id();?>">click me</a> </body> </html> // --- end of page1.php // --- start of page2.php <? error_reporting (E_ALL); session_start(); ?> <html> <head> </head> <body> <? echo $id_logged; ?> </body> </html> // -- end of page2.php page2.php gives 'Undefined variable: id_logged' notice, but correct output only when page1 is reloaded. However, no sess file is being writen in /tmp. It used to work fine with PHP 4.2.3, anyone solved this issue? Thanx. Previous Comments: ------------------------------------------------------------------------ [2003-02-24 09:40:47] hesslow at hotmail dot com I also have this problem. I also get 2 other error-messages: [Mon Feb 24 16:26:31 2003] [error] PHP Warning: session_start() [<a href='http://www.php.net/function.session-start'>function.session-start</a>]: The session id contains illegal characters, valid characters are only a-z, A-Z and 0-9 in /var/www/html/page.php on line 61 [Mon Feb 24 16:26:33 2003] [error] PHP Warning: Unknown(): The session id contains illegal characters, valid characters are only a-z, A-Z and 0-9 in Unknown on line 0 It's seams to me that the sessions works, but I get this strang error message. The only thing a do is to run start_session(); I use PHP 4.3.1 ------------------------------------------------------------------------ [2003-01-08 10:34:09] ccollins at totsp dot com space on /tmp is not an issue, there is 25GB avail on that partition. ------------------------------------------------------------------------ [2003-01-08 09:33:37] iliaa@php.net Is it possible that you may running out of space in /tmp? ------------------------------------------------------------------------ [2003-01-07 20:40:14] ccollins at totsp dot com I have very frequent errors in my logfiles concerning the session data. "[07-Jan-2003 18:46:30] PHP Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/php_sess) in Unknown on line 0" Users are sometimes reporting a problem where sessions are not maintained but this is apparently *usually* transparent to the users and it is not often noticed. The obvious things are in place, there IS a directory /tmp/php_sess and it is owned by the webserver user. I am using PHP 4.3.0 in safe_mode, as such: session.save_handler = files session.save_path = /tmp/php_sess session.use_cookies = On session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = On session.gc_maxlifetime = 1440 session.entropy_length = 0 session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = On I have apparently had this problem for quite some time dating back to 4.2.x. Please advise if there is anything I can try or do? I have read through the other similar bug reports that do exist but they all refer to version 4.2.3 and earlier and say the issue is solved in "later version" or "snapshot". Is this still a known issue in 4.3.0? Thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21503&edit=1

« previous php.bugs (#35268) next »