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

This is a discussion on Please help with this error: Warning: Unknown(): A session is active. within the PHP Language forums, part of the PHP Programming Forums category; Hi! I've searched high and low for this on the net but stil haven't found an answer. I'...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-01-2003
Rea
 
Posts: n/a
Default 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_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter 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_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path D:\programfiles\php\sessiondata
D:\programfiles\php\sessiondata
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_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


Reply With Quote
  #2 (permalink)  
Old 10-02-2003
Ivo
 
Posts: n/a
Default Re: Please help with this error: Warning: Unknown(): A session is active.

"Rea" <pluisje@fastmail.fm> wrote in message
news:vnmhq5eve2518b@corp.supernews.com...
>
> 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


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.

> 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_start Off Off
> session.bug_compat_42 On On
> session.bug_compat_warn On On
> session.cache_expire 180 180
> session.cache_limiter 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_divisor 100 100
> session.gc_maxlifetime 1440 1440
> session.gc_probability 1 1
> session.name PHPSESSID PHPSESSID
> session.referer_check no value no value
> session.save_handler files files
> session.save_path D:\programfiles\php\sessiondata
> D:\programfiles\php\sessiondata
> session.serialize_handler php php
> session.use_cookies On On
> session.use_only_cookies Off Off
> session.use_trans_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
>
>



Reply With Quote
  #3 (permalink)  
Old 10-03-2003
Albert
 
Posts: n/a
Default 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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0