By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,828 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,828 IT Pros & Developers. It's quick & easy.

Sessions problems

P: n/a
I'm trying to use session_set_save_handler to save session to mysql. I
have found alot of great examples and everything works except garbage
collection. which results in the following.

Unknown: A session is active. You cannot change the session module's
ini settings at this time. in Unknown on line 0

after a few hours of googleing and bug searching at php.net I have
found alot of posts regarding this problem. None appear to be recent
and none appear to have a solution.

I'm using gentoo with kernal 2.6.8.1, php 5.0.1, mysql 4.

Is this still a bug or has it been fixed?

Thanks in advance.

Jason
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
py
Jason wrote:
I'm trying to use session_set_save_handler to save session to mysql. I
have found alot of great examples and everything works except garbage
collection. which results in the following.

Unknown: A session is active. You cannot change the session module's
ini settings at this time. in Unknown on line 0

after a few hours of googleing and bug searching at php.net I have
found alot of posts regarding this problem. None appear to be recent
and none appear to have a solution.

I'm using gentoo with kernal 2.6.8.1, php 5.0.1, mysql 4.

Is this still a bug or has it been fixed?

Thanks in advance.

Jason


If you look at your code closely, are you sure you did not start the
session in the page you are having a problem before an ini_set command
like :
ini_set("session.gc_probability", "100");

By the way you should leave this to 100 while debugging...

py

p.s. you should post your code.
Jul 17 '05 #2

P: n/a
"Jason" <jw******@sfcn.org> wrote in message
news:3c**************************@posting.google.c om...
I'm trying to use session_set_save_handler to save session to mysql. I
have found alot of great examples and everything works except garbage
collection. which results in the following.

Unknown: A session is active. You cannot change the session module's
ini settings at this time. in Unknown on line 0

after a few hours of googleing and bug searching at php.net I have
found alot of posts regarding this problem. None appear to be recent
and none appear to have a solution.

I'm using gentoo with kernal 2.6.8.1, php 5.0.1, mysql 4.

Is this still a bug or has it been fixed?

Thanks in advance.

Jason


Check your php.ini. session.auto_start might be turned on.
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.