RE: [PHP4BETA] Hooray: QQ RE: [PHP4BETA] Docs for sessions?

From: Date: Fri, 23 Jul 1999 08:24:20 +0000
Subject: RE: [PHP4BETA] Hooray: QQ RE: [PHP4BETA] Docs for sessions?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2588@lists.php.net to get a copy of this message
-----Original Message----- From: Sascha Schumann [mailto:sascha@schumann.cx] Sent: 22 July 1999 18:17 To: Samuel Liddicott Cc: php4beta@lists.php.net Subject: Re: [PHP4BETA] Hooray: QQ RE: [PHP4BETA] Docs for sessions? >> Q) "session_encode -- Encodes all session objects and properties to a string >> via serialize" - >> What kind of encoding does it do on objects fields and sub-objects? > >That's currently broken. We will probably go for a PHPLIB-like >approach where only data fields are stored (simply because you >currently cannot serialize functions and other data). PHPLib allows storing of objects if certain helper fields are present which indicate the classname (perhaps this should be a built in object method to return the classname) and the names of the fields which should be stored (objects of which must follow the same rules). And of course methods are stored. Also - MUCH thanks for adding URI to the session stuff. BTW <%=sid;%> always returns a value even if cookies are used - the docs say it only returns a value of cookies aren't used. Sample page below. Reload it many times, the counter goes up but the sid is always present. Sam <%session_name("csl"); session_start(); session_register("count"); %> <html><head><title>Show =sid is always present</title> </head><body> message is <%=$message;%><br> count is <%=++$count;%><br> sid is <%=sid;%><br> <a href="<%=$PHP_SELF;%>?message=count+was+<%=$count;%>">Call self</a><hr> <% phpinfo(); %> </body></html>

« previous php.version4 (#2588) next »