Sessions problems

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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 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, php 5.0.1, mysql 4.

Is this still a bug or has it been fixed?

Thanks in advance.


Re: Sessions problems

Jason wrote:
Quoted text here. Click to load it

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...


p.s. you should post your code.

Re: Sessions problems

Quoted text here. Click to load it

Check your php.ini. session.auto_start might be turned on.

Site Timeline