Re: [PHP] Stopping objects from auto-serializing
- From: larry@xxxxxxxxxxxxxxxx (Larry Garfield)
- Date: Tue, 30 Oct 2007 23:50:06 -0500
Try:
php_value register_globals Off
That should not have any impact on the $_SESSION array, but turning register
globals off anyway is a good thing.
On Tuesday 30 October 2007, David Christopher Zentgraf wrote:
Hi,
I'm trying to set up my PHP app at my host, but am stumbling over the
PHP configuration there. register_globals is enabled, which seems to
auto-serialize my objects into $_SESSION, which in some cases
overwrites variables in there. I'm not sure if register_globals is
where the auto-serialization comes from, but it seems to be closely
related at least and I'm not in my best form today...
I tried putting "php_flag register_globals off" into an .htaccess
file, but that throws an Apache misconfiguration error.
Using set_ini() doesn't seem to do anything either.
Any advise on how to turn serialization off without dabbling with the
configuration file?
Chrs,
Dav
--
Larry Garfield AIM: LOLG42
larry@xxxxxxxxxxxxxxxx ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
.
- Follow-Ups:
- Re: [PHP] Stopping objects from auto-serializing
- From: David Christopher Zentgraf
- Re: [PHP] Stopping objects from auto-serializing
- References:
- Stopping objects from auto-serializing
- From: David Christopher Zentgraf
- Stopping objects from auto-serializing
- Prev by Date: Stopping objects from auto-serializing
- Next by Date: Re: [PHP] Stopping objects from auto-serializing
- Previous by thread: Stopping objects from auto-serializing
- Next by thread: Re: [PHP] Stopping objects from auto-serializing
- Index(es):