note 11548 added to Session handling functions

From: Date: Fri, 23 Feb 2001 23:06:51 +0000
Subject: note 11548 added to Session handling functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-11510@lists.php.net to get a copy of this message
-->session objects part II: I got this to work, if you are also having problems with sessions with register_globals turned off and none of the other suggestions work, you may as well give it a try: class session_variables{var $count=0;} session_start(); if (session_is_registered("z")) $z=&$HTTP_SESSION_VARS["z"]; else {$z=new session_variables();$HTTP_SESSION_VARS["z"]=&$z;} print $z->count++; http://www.php.net/manual/en/ref.session.php

« previous php.notes (#11510) next »