Re: [PHP] Session Variables in a Class

2003-09-10 Thread micro brew
Thanks Curt, You were absolutely correct. Removing the session_register() lines before the $_SESSION[] fixed the problem. By mixing the two before, it actually would register the variable so I could later test for the registered session variable but it did not retain the value I assigned it.

Re: [PHP] Session Variables in a Class

2003-09-10 Thread CPT John W. Holmes
From: micro brew [EMAIL PROTECTED] Here's my class. I start the session in the constructor and in later methods attempt to register session variables. You can see I've tried a couple different methods but none of them maintain the session variable values. Any suggestions? Is

[PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly ($_SESSION['name']='somevalue')

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Marco Schuler
Am Die, 2003-09-09 um 10.19 schrieb micro brew: Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the

Re: [PHP] Session Variables in a Class

2003-09-09 Thread CPT John W. Holmes
From: micro brew [EMAIL PROTECTED] I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly

Re: [PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Here's my class. I start the session in the constructor and in later methods attempt to register session variables. You can see I've tried a couple different methods but none of them maintain the session variable values. Any suggestions? Mike ?php class login { //This variable tells the

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Curt Zirzow
* Thus wrote micro brew ([EMAIL PROTECTED]): Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote micro brew ([EMAIL PROTECTED]): Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the