ID: 25876 Comment by: onno at triptic dot nl Reported By: golden at riscom dot com Status: Feedback Bug Type: Session related Operating System: freebsd 4.8 PHP Version: 4.3.3 New Comment:
Same symptoms as techtonik pointed out: http://www.jtag.com/test.php only one line of code with session_start() sometimes gives an error and sometimes does not. I'm getting the idea that maybe the number of users using a session simultaneously is involved but I have no way to check this since I don't have any access to the server-logs. I've checked /tmp: it has plenty of free space and is writeable by the webserver. info: http://www.jtag.com/info.php Doesn't know how long this will stay 4.3.10 because we requested a migration back to 4.3.9 already. Previous Comments: ------------------------------------------------------------------------ [2004-12-27 14:26:26] onno at triptic dot nl Nope it didn't help after all, sorry for the previous post ------------------------------------------------------------------------ [2004-12-27 14:24:03] [EMAIL PROTECTED] Please, provide a short but complete reproduce script. ------------------------------------------------------------------------ [2004-12-27 13:40:47] onno at triptic dot nl In 4.3.10 with apache/linux I had this problem by simply creating my own session_id and set this using the function session_id(). Not doing this seemed to have helped. ------------------------------------------------------------------------ [2004-12-27 13:34:42] mstuhu at web dot de Same here (PHP 4.3.10 as module on Apache 1.3.26, Redhat Linux) for Squirrelmail: Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) "session.save_handler" is "files" by default, however "Registered save handlers" is "files user". ------------------------------------------------------------------------ [2004-12-27 12:34:15] mbi at euro-ip dot net FreeBSD 4.10 and PHP 4.3.10 How to reproduce: - Running a system with about 1000 virthosts, some of the users use PHP scripts that configure own session handlers. - Most of the users don't configure an alternate session handler and start their session with a simple "session_start();" statement, but some of them do, mostly by installing some kind of forum or weblog tool. Users that don't set an alternate session handler or set their session handler to "files" via ini_set in every file they open regulary get confronted with a PHP error like: PHP Fatal error: session_start(): Failed to initialize storage module: user (....) Putting "ini_set ( "session.save_handler", "files" );" in every file with a "session_start();" in it solved it for our own sites, but doesn't go easy with all the other users affected. For us, this started after upgrading from PHP 4.3.9 to 4.3.10. Putting "php_value session.save_handler files" in .htaccess files or Apache config files didn't help to fix the problem. Disabling all sites with "user" session handlers stopped the error from occuring, but this is obviously not what we want. ------------------------------------------------------------------------ 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/25876 -- Edit this bug report at http://bugs.php.net/?id=25876&edit=1