Re: So why do I need session?
| From: | Mikael Grön | Date: | Wed, 11 Apr 2007 06:43:59 +0000 |
| Subject: | Re: So why do I need session? | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-27656@lists.php.net to get a copy of this message | ||
Yes, no, you're right. I don't do that on every page on the systems I've built. And yes, I define('USER','The user namespace'); before I set it.
Mike
Stut skrev:
Out of curiosity, why do you create the user object on every page request? Why not store the user object in the session? Also, $GLOBALS[USER] is invalid unless you have defined a constant called USER somewhere. -Stut