Q. What will be the output?
Code:
session_start(); $_SESSION['x'] = 5; echo session_id() ? 'Started' : 'Not Started';
β
Correct Answer: (A)
Started
Explanation: session_id() returns value when session is active.