Sessions problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason

    #1

    Sessions problems

    I'm trying to use session_set_sav e_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
  • py

    #2
    Re: Sessions problems

    Jason wrote:[color=blue]
    > I'm trying to use session_set_sav e_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[/color]

    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("sessio n.gc_probabilit y", "100");

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

    py

    p.s. you should post your code.

    Comment

    • Chung Leong

      #3
      Re: Sessions problems

      "Jason" <jwheeler@sfcn. org> wrote in message
      news:3c6cfb56.0 410100045.533d4 e7d@posting.goo gle.com...[color=blue]
      > I'm trying to use session_set_sav e_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[/color]

      Check your php.ini. session.auto_st art might be turned on.


      Comment

      Working...