Re: session variables within a class

From: Date: Mon, 06 Nov 2000 13:26:16 +0000
Subject: Re: session variables within a class
Groups: php.general 
Request: Send a blank email to php-general+get-23876@lists.php.net to get a copy of this message
I had ran into this very same problem when I started using sessions. I changed your script to have the following line in each of the class functions (as the first line): global $counter; I had to do the same in the scripts that I created. Does not make sense to me but I got it to work. LP --- Carey Tilden <revdiablo@wd39.com> wrote: > Note here I am not trying to set my object as a session variables, I > am > just trying to create a class which uses session variables > internally. > > I've included a very simple example, which doesnt work. I can't > figure out > why the session variable does not get set from inside the class. I've > been > banging my head on this for a while, any help would be awesome. __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/

« previous php.general (#23876) next »