ID: 25876 Comment by: oliver at teqneers dot de Reported By: golden at riscom dot com Status: Assigned Bug Type: Session related Operating System: freebsd 4.8 PHP Version: 4.3.9-4.3.10 Assigned To: sas New Comment:
We are using PHP 4.3.9 on a Win2003 Server with an IIS 6.0. We also tried to use winenabler next to the cgi-version as well as an Apache2, but the error still comes up ("Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0"). Since some scripts are trying to use a customer DB based session save handler, other scripts experience problems with the standard files session handler ("Fatal error: session_start(): Failed to initialize storage module: user (path: ...)". It seems that once a php got its session.save_handler settings changed, it remembers them and does not switch back to standard settings as it should do. The second problem appears to be random. Previous Comments: ------------------------------------------------------------------------ [2005-01-18 23:14:03] helmut007 at gmx dot net nobody of the programmers cares? ;) ------------------------------------------------------------------------ [2005-01-09 14:56:58] seefire_00 at yahoo dot com The session handler directive on our server was pre-configured to use 'files' rather than 'user'. The problem still persists... In addition, the /tmp folder is writeable. ------------------------------------------------------------------------ [2005-01-07 11:42:41] camalauarconet at hotmail dot com FreeBSD xxxxxxxxx.com.br 5.3-RELEASE FreeBSD 5.3-RELEASE Server version: Apache/2.0.50 Server built: Jan 2 2005 08:13:08 PHP 4.3.9 (cli) (built: Jan 2 2005 11:24:41) (DEBUG) ERRO Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) A solução no meu caso foi pico /usr/local/etc/php.ini session.save_handler = user TO session.save_handler files Obrigado ------------------------------------------------------------------------ [2005-01-07 00:23:31] jarratt at dotpixel dot net Update: Hi again, On the above mentioned issue, we only recently started testing with our own 'session.save_handler', when this error started to appear, i found that if i restart apache and access the orginally working sites (default session.save_handler) they appear to be fine? not sure if that helps any but i thought i would mention it. regards ------------------------------------------------------------------------ [2005-01-06 20:24:12] jarratt at dotpixel dot net Hi, We also seem to be experience this intermittent problem with a newly compiled version of PHP 5.0.3 Fatal error: session_start() [function.session-start]: Failed to initialize storage module: user (path: ) in ... Any ideas, i have two versions of php on my fedora 1 box if i switch to php 4.3.8 Fedora rpm version i have no issues. In the php.ini has session.save_handler = files set any suggestions? Thanks ------------------------------------------------------------------------ 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