Jump to content

manual, on sessions


ricmetal

Recommended Posts

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.

?

Link to comment
https://forums.phpfreaks.com/topic/253437-manual-on-sessions/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/253437-manual-on-sessions/#findComment-1299077
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.