#32330 [Asn]: session_destroy, "Failed to initialize storage module", custom session handler
From: mfischer@php.net Date: Thu, 24 Mar 2005 06:22:25 +0000 Subject: #32330 [Asn]: session_destroy, "Failed to initialize storage module", custom session handler References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-75794@lists.php.net to get a copy of this message
ID: 32330
Updated by: mfischer@php.net
Reported By: mfischer@php.net
Status: Assigned
Bug Type: Session related
Operating System: *
PHP Version: 4CVS, 5CVS (2005-03-17)
Assigned To: sniper
New Comment:
scott, scliburn: are you both using session_set_save_handler() ? Are
you operating in the same environment (custom save handlers are getting
lost after session_destroy) or are you just having the same error
message?
Most bugs I've seen refering to 'Failed to initialize...' are because
session module in php.ini is set to user instead of files when there
are no custom session handlers, which has nothing to do with this
issue.
Previous Comments:
------------------------------------------------------------------------
[2005-03-23 20:40:49] scliburn at trtinfo dot com
I would like to also add that I'm running and experiencing this issue
in both api versions CGI/ISAPI. not sure if that mattered
------------------------------------------------------------------------
[2005-03-23 20:34:44] scott at trtinfo dot com
i am getting this error on the following environments:
Windows2003 - Zend 2.03, php Version 5.0.3
Redhat 9, Zend 2.03, php Version 4.3.10
Redhat 9, Zend 2.03, php Version 4.3.9
this is happening more often each day. Sessions handler set to files,
session repository directory does not have any space issues. Chmod on
tmp dir set 777.
I am however creating my own hash value for the session id.
This is also done on another server and it has not had this session
error at all. Yet.
------------------------------------------------------------------------
[2005-03-19 00:55:18] mfischer@php.net
Good catch, thanks.
------------------------------------------------------------------------
[2005-03-17 10:37:29] sniper@php.net
I see that the php_session_destroy() is called in php_session_decode()
too..
------------------------------------------------------------------------
[2005-03-17 10:14:08] mfischer@php.net
I unfortunately lack the time to verify this with a new php
installation currently.
By looking at
http://cvs.php.net/co.php/php-src/ext/session/session.c?r=1.336.2.50
(latest commit of 4_3 branch) the relevant parts of the code haven't
changed. PS(mod_data) is still set to NULL in php_rinit_session_globals
which is called from php_session_destroy, this when a user from PHP
calls session_destroy(), the custom session save handlers are removed.
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/32330
--
Edit this bug report at http://bugs.php.net/?id=32330&edit=1
Thread (38 messages)
- #32330 [Opn->Fbk]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Opn->Asn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Asn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Asn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Asn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Fbk->Opn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Asn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Asn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Asn->Opn]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Opn->Ver]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Ver->Csd]: session_destroy, "Failed to initialize storage module", custom session handler
- #32330 [Csd]: session_destroy, "Failed to initialize storage module", custom session handler
- Bug #32330 [Com]: session_destroy, "Failed to initialize storage module", custom session handler
- Bug #32330 [Csd]: session_destroy, "Failed to initialize storage module", custom session handler
- Bug #32330 [Csd]: session_destroy, "Failed to initialize storage module", custom session handler
| « previous | php.bugs (#75794) | next » |
|---|