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

From: Date: Sat, 24 Jul 1999 12:20:54 +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-2673@lists.php.net to get a copy of this message
Hello Sam, Actually, for me it doesn't show the sid when I first load it and the counter increments nicely without any sid values popping up (cookies enabled). Make sure you have a fresh loaded URL and not from the cache and that you have enabled track_vars. Cheers, Patrick Samuel Liddicott wrote: > -----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> > > -- > PHP 4 Beta

« previous php.version4 (#2673) next »