Re: [PHP] Sessions in classes dosn't work!?

2001-08-30 Thread Thomas Watson
> Hmmm, it seems that "obj" is not saved to the session file. > > > I don't thik that & before new is needed. This is weird :) It worked when I removed the & (thought that I tried that ;). Now I just can't remember why I put it there in the first place. I hope it wasn't importent ... well I w

Re: [PHP] Sessions in classes dosn't work!?

2001-08-30 Thread Andrey Hristov
estoring to be as before saving. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Thomas Watson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 30, 2001 2:18 PM Subject: Re: [PHP] Sessions in classes dosn't work!?

Re: [PHP] Sessions in classes dosn't work!?

2001-08-30 Thread Thomas Watson
> This is because $foo is local to the member functions of the class. > declare global $foo at the start of every function. Ok thnx... it worked... but how do you then explain this?: *** foo = $bar; } function getFoo() {

Re: [PHP] Sessions in classes dosn't work!?

2001-08-30 Thread Andrey Hristov
This is because $foo is local to the member functions of the class. declare global $foo at the start of every function. Andrey Hristov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Thomas Watson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, Aug