Re: objects stored in sessions

From: Date: Mon, 07 Apr 2008 10:40:33 +0000
Subject: Re: objects stored in sessions
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-272613@lists.php.net to get a copy of this message
Have you seen how PHP makes difference between private, protected and public attributes of an object, into the session file ? There are special caracters before them to recognize them. So the question is : is PHP4 able to read such a session file ? And how will it interpret them when we ask him to unserialize data ?
The question(s) should be "Why would you want PHP4 to read a PHP5 session?" and "Why would you expect it to work?". If you want to transfer data between versions you may want to investigate XMLRPC. Or perhaps the somewhat more verbose SOAP. -- Richard Heyes Employ me: http://www.phpguru.org/cv

« previous php.general (#272613) next »