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:
Correction: The problem "Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0" has been solved by removing all "exit" statements from session handler as well as from the scripts. Previous Comments: ------------------------------------------------------------------------ [2005-01-24 10:58:15] oliver at teqneers dot de 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. ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ 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