National_Instruments
200-500 · Question #178
Under which circumstances is the $_SESSION super-global available? (Choose 2)
The correct answer is A. If session_start() was called. B. If session.auto_start INI setting is enabled. See the full explanation below for the reasoning.
Question
Under which circumstances is the $_SESSION super-global available? (Choose 2)
Options
- AIf session_start() was called.
- BIf session.auto_start INI setting is enabled.
- CAlways available in PHP 5.
- DIf a valid session id is passed via GET, POST or COOKIE.
- EIf register_globals are enabled.
How the community answered
(35 responses)- A77% (27)
- C11% (4)
- D9% (3)
- E3% (1)
Community Discussion
No community discussion yet for this question.