Adding Session Support

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

[in addition to the last post]
when using session_register while register_globals is Off the registered variable is not available by "it's name" within following pages. It will be stored in $_SESSION['<registered name>'].
This behaviour is related to the topic of Sticky: Before Post Read: Concerning Passing Variables in PHP 4.2+
User avatar
Zeceer
Forum Contributor
Posts: 136
Joined: Fri Aug 02, 2002 5:10 am
Location: Norway

Post by Zeceer »

i understand. Didn't think of the global :oops:. But it works now. Thanx!
Post Reply