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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.