$_SESSION variable and variable same name problem

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

Post Reply
Tehquickness
Forum Commoner
Posts: 32
Joined: Mon Oct 24, 2005 11:31 pm

$_SESSION variable and variable same name problem

Post by Tehquickness »

If you have a session variable and a regualar variable with the same name does it cause havoc in your program??
I think this was the solution to a problem I was having but not sure.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

provided the register_globals setting is off and/or you aren't using session_register() they shouldn't have any crosstalk problems.
Post Reply