Re: session class
| From: | Yasuo Ohgaki | Date: | Sat, 22 Dec 2001 06:17:26 +0000 |
| Subject: | Re: session class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78541@lists.php.net to get a copy of this message | ||
Christian Haines wrote:
(sorry if this has been posted a thousand times..i am having problems posting) hi all, how does one access and manipulate session variables from within a class? i have hunted the net high and low but received no relief. i have tried (where error is a session variable) class test {This is wrong.var $global['error'];}
class test {This is wrong thing to do alsovar $HTTP_SESSION_VARS['error'];}
class test
{
session_register("error");
var $error;
}
This is also wrong, too....
Try to find example code. There are many of them on net.
--
Yasuo Ohgaki