Re: So why do I need session?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux