On 15.05.2007 18:44 jyrgen wrote:
> pr(serialize($_SESSION));
>
> results in :
>
> a:1:{s:6:"Config";a:3:{s:4:"rand";i:1482441247;s:4:"time";i:
> 1179248446;s:9:"userAgent";s:32:"cc98eaffc23c634e0efd75ab9e36e810";}}
>
> so fine-.
>
> but note the different notation in the sessions table:
>
> Config|a:3:{s:4:"rand";i:1482441247;s:4:"time";i:1179247983;s:
> 9:"userAgent";s:32:"cc98eaffc23c634e0efd75ab9e36e810";}
It's obviously *not* just a call to serialize($_SESSION) then.
> php fails to unserialize this string !!
Split the string at the | character, then use the first part as the
array key, and deserialize the second part into the array's value.
Why don't you just look into the Cake source?
-Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---