Multiple choice technology web technology

What is the function to start the session?

  1. session_start()

  2. session_init()

  3. session_boot()

  4. None of the Above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

session_start() is the correct PHP function to initialize a session - it must be called before any output is sent to the browser. The other options don't exist - session_init() and session_boot() are not valid PHP functions. Once started, session data becomes available through the $_SESSION superglobal.