Serializing Session variables. Cuts off after a given length????
From: Ryan Hubbard (ryanmhuc_at_yahoo.com)
Date: 09/30/04
- Next message: lawrence: "Re: how to test text to see if maybe it is UTF-8????"
- Previous message: Patryk Konieczka: "dot-space in href regexp needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: lawrence: "Re: how to test text to see if maybe it is UTF-8????"
- Previous message: Patryk Konieczka: "dot-space in href regexp needed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|