Secure variable transport (newbie)
| From: | Karina S | Date: | Wed, 22 Jan 2003 23:30:24 +0000 |
| Subject: | Secure variable transport (newbie) | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-25054@lists.php.net to get a copy of this message | ||
Hi,
I have read, that use global variables on php site is not a good idea. I'm
newbie in PHP and maybe a stupid question:
If I make an array and register it in a session and after I use it all of my
pages as $HTTP_SESSION_VARS['variable'] and register_globals is off. In this
case is $HTTP_SESSION_VARS['variable'] a global variable?
What is the best method (most secure method) to use the same array on all
php site? (I want to read the user data, but don't want to read it always
from database. I want to read once and use it on more pages. )
Thanks for your help!