Re: PHP 4.0 Bug #2228 Updated: Session environment not restored automatically at start of script as per docs
| From: | Sascha Schumann | Date: | Fri, 03 Sep 1999 17:21:08 +0000 |
| Subject: | Re: PHP 4.0 Bug #2228 Updated: Session environment not restored automatically at start of script as per docs | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-10525@lists.php.net to get a copy of this message | ||
On Fri, Sep 03, 1999 at 02:02:38PM -0000, Bug Database wrote:
> ID: 2228
> Updated by: andrey
> Reported By: kmunn@munn.com
> Status: Closed
> Bug Type: Misbehaving function
> Assigned To:
> Comments:
>
> This is happening because your auto_start is set to 1, which means that
> the session mechanism is started automagically when you session_register()
> any variable. Another way of doing it is to call session_start() manually.
> Just put this in your auto_prepend file and forget about it.
No. If session.auto_start is set to 1, _php_session_start()
is called automatically on request startup.
session_register() always initializes the session, if it has
not been initialized before. It does not depend on
session.auto_start.
There is a typo in php_rinit_session() which is already fixed
locally (commit pending).
--
Regards,
Sascha Schumann
Consultant