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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to