Re: session_start in php 4.3.6
| From: | Curt Zirzow | Date: | Fri, 21 May 2004 20:45:37 +0000 |
| Subject: | Re: session_start in php 4.3.6 | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186720@lists.php.net to get a copy of this message | ||
* Thus wrote Bob Lockie (bjlockie@lockie.ca):
> On 05/21/04 16:08 Michael R. Wayne spoke:
> >On Fri, May 21, 2004 at 10:01:56PM +0200, Paul Godard wrote:
> >
> >>Hi
> >>
> >>All my web sites suddenly stopped working after my ISP installed the
> >>newer php 4.3.6 released. The problem is when calling the
> >>session_start() function. It seems that the warning message saying that
> >>the session has already started and that the function will be ignored
> >>makes the php script stop at this point although it is a warning. This
> >>worked perfectly in php 4.3.4.
> >>
> >>What should I do to be compatible with php 4.3.6?
> >
> >
> >This is because your ISP has likely set
> > session.auto_start = 1
> >in php.ini
> >
> >Either have the ISP set it to 0 or remove all session_start calls
> >from your scripts to eliminate the warnings.
>
> Would putting an '@' in front of all session_start calls hide the problem?
Hide? yeah... Good Idea? No
if (! session_id() ) session_start();
Curt
--
"I used to think I was indecisive, but now I'm not so sure."