Serializing Session variables. Cuts off after a given length????

From: Ryan Hubbard (ryanmhuc_at_yahoo.com)
Date: 09/30/04


Date: 30 Sep 2004 09:21:01 -0700

I've have been trying to serialize an array of objects. I can
serialize and set a session variable and retrieve it successfully for
a serialize string of any length within the contents of a single
script.

$_SESSION['a'] = serialize($b); // strlen($a) = 120,011
print unserialize($_SESSION['a'])

But if I set a session variable and then try to access it on another
page the session variable is always truncated at 67,789 in length. So
the unserialize function cannot correctly interrupt the variable. Why
are my serialized session variables truncated at 67,789???

Thanks



Relevant Pages

  • Re: userialize bug?
    ... I use php4.4.1 and when a user log in I use a class which stores ... I serialize the class in a session variable. ... > I later on read the session var and unserializd to check for certain ... Since all information that is stored in session variables is ...
    (comp.lang.php)
  • Re: userialize bug?
    ... I serialize the class in a session variable. ... I later on read the session var and unserializd to check for certain user info. ... Since all information that is stored in session variables is ...
    (comp.lang.php)
  • Re: serialization and Session Object
    ... > to serialize this object? ... I think only if you're using session variables in a webfarm: ... I never had problems storing complex objects in a sesion variable on a ...
    (microsoft.public.dotnet.framework.aspnet)
  • Session Problem - could it be cos of register_globals?
    ... My server runs PHP version 4.4.3. ... I'm successfully creating a session and can set and retrieve my own session variables. ... Note the value of $_SESSIONis also empty, isn't that also supposed to be created and sent to the browser automatically by session_start?? ...
    (comp.lang.php)
  • Re: URL link plus parameters
    ... What about session variables? ... retrieve them in Page ... > Hi gurus, ... > Does anyone of you know how to make a URL link wihtout showing the ...
    (microsoft.public.dotnet.framework.aspnet)