Re: is it posslible to use a class in session_register();
| From: | Markus Fischer | Date: | Mon, 17 Sep 2001 13:30:10 +0000 |
| Subject: | Re: is it posslible to use a class in session_register(); | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66112@lists.php.net to get a copy of this message | ||
Hi Bernd,
please ask support questions at php-general@lists.php.net or,
more appropriate for you, try some german mailing lists at
php-center.de (if I'm right?).
To your question: yes you can. but session variable _need_ to be
global. So if you want a property of your object being part of
the session you have to assign it to a global variable first.
- Markus
On Mon, Sep 17, 2001 at 01:59:46PM +0200, Bernd Zohner wrote :
> i wanna use a class in all php sites and i need the values and methods of
> the class in every page.
>
> who can i solve that problem.
>
> or can i define the class global?
>
> thx Bernd