Please help with this error: Warning: Unknown(): A session is active.

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

    Please help with this error: Warning: Unknown(): A session is active.


    Hi!

    I've searched high and low for this on the net but stil haven't found an
    answer.

    I'm trying to install both postnuke and xoops on a win2k server with php
    4.3.3. and mysql installed.

    Both applications are loading terribly slow. When the page finally has been
    rendered I got the following error:

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

    Is it a bug in PHP? Has it something to do with the fact that I'm running it
    at win2k?

    Since I think it has something to do with sessions, I attach a snapshot of
    the results for phpinfo()

    Directive Local Value Master Value
    session.auto_st art Off Off
    session.bug_com pat_42 On On
    session.bug_com pat_warn On On
    session.cache_e xpire 180 180
    session.cache_l imiter nocache nocache
    session.cookie_ domain no value no value
    session.cookie_ lifetime 0 0
    session.cookie_ path / /
    session.cookie_ secure Off Off
    session.entropy _file no value no value
    session.entropy _length 0 0
    session.gc_divi sor 100 100
    session.gc_maxl ifetime 1440 1440
    session.gc_prob ability 1 1
    session.name PHPSESSID PHPSESSID
    session.referer _check no value no value
    session.save_ha ndler files files
    session.save_pa th D:\programfiles \php\sessiondat a
    D:\programfiles \php\sessiondat a
    session.seriali ze_handler php php
    session.use_coo kies On On
    session.use_onl y_cookies Off Off
    session.use_tra ns_sid Off Off

    Best Regards,

    Remco


    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.522 / Virus Database: 320 - Release Date: 29-9-2003


  • Ivo

    #2
    Re: Please help with this error: Warning: Unknown(): A session is active.

    "Rea" <pluisje@fastma il.fm> wrote in message
    news:vnmhq5eve2 518b@corp.super news.com...[color=blue]
    >
    > Hi!
    >
    > I've searched high and low for this on the net but stil haven't found an
    > answer.
    >
    > I'm trying to install both postnuke and xoops on a win2k server with php
    > 4.3.3. and mysql installed.
    >
    > Both applications are loading terribly slow. When the page finally has[/color]
    been[color=blue]
    > rendered I got the following error:
    >
    > Warning: Unknown(): A session is active. You cannot change the session
    > module's ini settings at this time. in Unknown on line 0[/color]

    Look for ini_set(*blah*) in the script. That 's where the ini settings are
    being changed. Try moving that to before session_start() which is higher up
    in the code apparently.
    [color=blue]
    > Is it a bug in PHP? Has it something to do with the fact that I'm running[/color]
    it[color=blue]
    > at win2k?
    >
    > Since I think it has something to do with sessions, I attach a snapshot of
    > the results for phpinfo()
    >
    > Directive Local Value Master Value
    > session.auto_st art Off Off
    > session.bug_com pat_42 On On
    > session.bug_com pat_warn On On
    > session.cache_e xpire 180 180
    > session.cache_l imiter nocache nocache
    > session.cookie_ domain no value no value
    > session.cookie_ lifetime 0 0
    > session.cookie_ path / /
    > session.cookie_ secure Off Off
    > session.entropy _file no value no value
    > session.entropy _length 0 0
    > session.gc_divi sor 100 100
    > session.gc_maxl ifetime 1440 1440
    > session.gc_prob ability 1 1
    > session.name PHPSESSID PHPSESSID
    > session.referer _check no value no value
    > session.save_ha ndler files files
    > session.save_pa th D:\programfiles \php\sessiondat a
    > D:\programfiles \php\sessiondat a
    > session.seriali ze_handler php php
    > session.use_coo kies On On
    > session.use_onl y_cookies Off Off
    > session.use_tra ns_sid Off Off
    >
    > Best Regards,
    >
    > Remco
    >
    >
    > ---
    > Outgoing mail is certified Virus Free.
    > Checked by AVG anti-virus system (http://www.grisoft.com).
    > Version: 6.0.522 / Virus Database: 320 - Release Date: 29-9-2003
    >
    >[/color]


    Comment

    • Albert

      #3
      Re: Please help with this error: Warning: Unknown(): A session is active.

      On Thu, 2 Oct 2003 16:15:25 +0200, "Ivo" <no@thank.you > wrote:

      It will be slow forever.
      It is terribly bad written PHP, nothing is optimized, and it uses to
      many resources.
      Especially the use of GD lib is badly programmed.

      Albert


      Comment

      Working...