Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Need advice: Global or Session variables


vacorama - 7:47 pm on Mar 15, 2006 (gmt 0)


you should always use session over globals... To fix some of the 'back button' problems, i sometimes use a seperate session variable that keeps track of the stages that the program might/should be in, and then you can combine them in with your logic to make sure people are seeing that right things at right time... Switches are good for that stuff too.


Thread source:: http://www.webmasterworld.com/php/12124.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com