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.
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
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')
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
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
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
* 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
* 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
8 matches
Mail list logo