ricmetal Posted December 18, 2011 Share Posted December 18, 2011 hi i am reading about sessions in the php manual. what does this mean: If register_globals is disabled, only members of the global associative array $_SESSION can be registered as session variables. The restored session variables will only be available in the array $_SESSION. ? Quote Link to comment https://forums.phpfreaks.com/topic/253437-manual-on-sessions/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 18, 2011 Share Posted December 18, 2011 It means that php.net created a lot of confusion in its early days that has since been turned off by default and will shortly be completely removed from the language. The only things you need to know concerning session variables are - 1) You need a session_start() statement (before you send any characters/html to the browser) on any page that sets or references a session variable. 2) You set or reference session variables by setting or referencing the $_SESSION super-global array. Quote Link to comment https://forums.phpfreaks.com/topic/253437-manual-on-sessions/#findComment-1299077 Share on other sites More sharing options...
ricmetal Posted December 18, 2011 Author Share Posted December 18, 2011 ok, thanks PF Quote Link to comment https://forums.phpfreaks.com/topic/253437-manual-on-sessions/#findComment-1299080 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.