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

2001-08-30 Thread Thomas Watson
How come that I cannot store a varible in the session when I do this from within another object? This is my code: Click here\n"); } } } new MyClass($state); ?> /watson -- PHP General M

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 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

[PHP] global $HTTP_SESSION_VARS not global ???

2001-09-10 Thread Thomas Watson
Hi all, After a bit of testing, I've noticed, that the $HTTP_SESSION_VARS array isn't as global as the manual makes it. The following piece of code should produce 2 blank lines and a "click here" link the first time it's loaded. When you click on the link, I would expect two lines saying "som