#21306 [Fbk->Opn]: warnning about "cannot change the session settings"

From: Date: Tue, 31 Dec 2002 08:52:19 +0000
Subject: #21306 [Fbk->Opn]: warnning about "cannot change the session settings"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28832@lists.php.net to get a copy of this message
 ID:               21306
 User updated by:  Xuefer@21cn.com
 Reported By:      Xuefer@21cn.com
-Status:           Feedback
+Status:           Open
 Bug Type:         Session related
 Operating System: linux
 PHP Version:      4.3.0
 New Comment:

i forgot to note that, this issue is random happend
i can't reproduce it, but my user trigger it and i saw errors in log
and my script is in production, it's too complex
i am not able to give full script
but my function look like:
function mysessionstart() {
if (session_id()) return
session_set_save_handler(
    '_sess_open',
    '_sess_close',
    '_sess_read',
    '_sess_write',
    '_sess_destroy',
    '_sess_gc'
);
session_start();
}
it works fine until get warnning in php-4.3.0

here the config is:
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
containing ids.
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache

session.cache_expire = 180

session.use_trans_sid = 1
url_rewriter.tags =
"a=href,area=href,frame=src,input=src,form=fakeentry"


Previous Comments:
------------------------------------------------------------------------

[2002-12-31 02:27:43] derick@php.net

THis is most likely not a bug, can you show us the script, and the
session.* settings in php.ini?

Derick

------------------------------------------------------------------------

[2002-12-31 02:00:45] Xuefer@21cn.com

i've got this problem after i upgrade from php4.2.2 to 4.3.0:

[31-Dec-2002 15:30:03] PHP Warning:  Unknown(): A session is active.
You cannot change the session module's ini settings at this time. in
Unknown on line 0

seems a internal error, php script
hope this to be fix soon

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=21306&edit=1



Thread (43 messages)

« previous php.bugs (#28832) next »