session class
| From: | Christian Haines | Date: | Sat, 15 Dec 2001 04:17:40 +0000 |
| Subject: | session class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-78540@lists.php.net to get a copy of this message | ||
(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
{
var $global['error'];
}
class test
{
var $HTTP_SESSION_VARS['error'];
}
class test
{
session_register("error");
var $error;
}
all to no avail.
please help!
many thanks in advance,
christian