468,549 Members | 2,383 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,549 developers. It's quick & easy.

Warning "Unknown: A session is active. You cannot change the session module's ini settings at this time."

Hi all,

I'm trying to implement a custom session handler that writes session
data to a MySQL database. It works fine about 99% of the time. Trouble
is, at random intervals, I get entries like the following in my
php-error.log:

[28-Apr-2006 04:44:25] PHP Warning: Unknown: A session is active. You
cannot change the session module's ini settings at this time. in
Unknown on line 0

Occasionally, but not always, this warning will be preceded by one of
these fatals:

[28-Apr-2006 11:59:19] PHP Fatal error: Exception thrown without a
stack frame in Unknown on line 0

Research has pulled up this bug,

<http://bugs.php.net/bug.php?id=26005>

While there are indications that this was fixed in 2004, it persists;
the annoying part being that we can't intentionally reproduce the
errors, nor can we come up with any common metrics for the system's
state when the errors are occurring. Worse yet, because we can't
trigger this on demand, we can't determine a way to try and trap for
it.

Has anyone tracked down a definitive cause for this problem?

My environment is Debian sarge (kernel 2.6.8-1-686-smp) on a PowerEdge
2650 with 4 3.2ghz Xeons, PHP 5.0.3, Apache 1.3.33, and 2 gigs of RAM.
At the present time, upgrading PHP on this box is not really an
option.

TIA,

Shaun

-
Remove mypants to email.
<http://www.shaunc.com/>
Apr 29 '06 #1
0 1919

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Greg Scharlemann | last post: by
6 posts views Thread by delusion7 | last post: by
reply views Thread by Georg | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.