Re: [PHP] Stopping objects from auto-serializing



On 31 Oct 2007, at 15:32, Jochem Maas wrote:

aside from this error (my guess is your not allowed to override it) I can't
see the problem of serialization .. don't put the object in $_SESSION?
....
what are you doing? show us the code?

I'm not putting the object in $_SESSION, but PHP apparently does on this specific configuration.
I'm saving an array of ids in $_SESSION["basket"], and on some pages I have an object called $basket.
Somehow this $basket gets saved into $_SESSION["basket"], where it simply does not belong because it makes my code barf.

Seems I'll have to rename my variables, but aside from this specific fix, I don't want any unneeded variables floating around my $_SESSION and I certainly don't want them to be globally_registered.
.



Relevant Pages

  • RE: TS disconnects when minimized a couple minutes
    ... and without any extra configuration the connection timeouts disappeared. ... > End a disconnected session - Never ... > Active session limit - Never ...
    (microsoft.public.windows.server.general)
  • RE: Default application not launching
    ... Terminal Services Configuration - rdp-tcp connection - Environment ... the session should logoff automatically when a user ... Services Configuration, a GPO or in the RDP client, the session ... MCSE, CCEA, Microsoft MVP - Terminal Server ...
    (microsoft.public.windows.terminal_services)
  • Re: Cannot get Session State to work
    ... Original (Session state works, but I get a sys not defined on my Ajax pages): ... in a configuration file or in the page directive. ... The section enables configuration ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ts2003, users hung at black screen
    ... the router can still think that the session can be disconnected. ... Most routers allow configuration of the idle timeout, ... MCSE, CCEA, Microsoft MVP - Terminal Server ... this the place to change the group policy for the screen saver? ...
    (microsoft.public.windows.terminal_services)
  • Re: Cannot get Session State to work
    ... If you don't mind Session ID's being reused, ... Juan T. Llibre, asp.net MVP ... in a configuration file or in the page directive. ... The section enables configuration ...
    (microsoft.public.dotnet.framework.aspnet)