Multiple choice

Why is $_SESSION variable used in PHP?

  1. It is used to start a session.

  2. It is used to destroy the session.

  3. It is used to store a session variable.

  4. Both (1) and (3)

  5. None of the above

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

Yes, $_SESSION variable is used to store or retrieve the session variable.