Re: session overwriting global
| From: | Shawn McKenzie | Date: | Sat, 05 Dec 2009 17:45:43 +0000 |
| Subject: | Re: session overwriting global | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-300260@lists.php.net to get a copy of this message | ||
Horváth Károly wrote:
> Hi,
>
> I have a very strange problem.
> I am the new developer of an existing site. They have a custom session
> handler that stores the session in the database. The application
> connects to the database, registers the session handler with
> session_set_save_handler. Nothing interesting so far.
> Then it calls session_start which updates one of the global variables!!!
> I checked the session read(..) method and just before returning the
> global is untocuhed.
> Can anybody explain how could that happen?
>
> additional info:
> the global variable is also stored in the session.
> php 4.4.9, the problem only occurs on the dev server and not on the live
> site, and only with https! as far as we know the server configurations
> are identical except that that on the dev server we have an ssl
> certificate which is not verified so the browser shows the usual
> warning/accept certificate message.
>
register_globals = On in php.ini?
--
Thanks!
-Shawn
http://www.spidean.com