Re: session serialize format is different to serialize-function format!?
| From: | Wolfram Kriesing | Date: | Wed, 03 Apr 2002 10:26:00 +0000 |
| Subject: | Re: session serialize format is different to serialize-function format!? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82049@lists.php.net to get a copy of this message | ||
On Wednesday 03 April 2002 12:23, Wolfram Kriesing wrote:
> Why is the serialized data that are automatically written in the session
> file different to what the serialize function returns for
> "serialize($_SESSION)" ?
>
> i tried to write a session handler, since in php4.1.2 on win using
> register_globals=Off the session doesnt work.
> And I wanted to write "serialize($_SESSION)" in the session file (instead
> of the $sess_data passed to the write-function), but since the
> read-function simply returns this string without serializing it i have no
> chance of serializing the data using my own format, or the format returned
> by "serialize($_SESSION)" . Is this intended?
just for the info:
automatically the session writes:
layout|O:18:"mypear_page_layout":3:{s:7:"options";a:15.......
serialize returns:
s:6:"layout";O:18:"mypear_page_layout":3:{s:7:"options";a:15.........
--
Wolfram
... translating template engine ....
http://sf.net/projects/simpletpl
... authentication system ....
http://sf.net/projects/auth