Open In App

Web technologies Questions | PHP Quiz | Set 1 | Question 14

Like Article
Like
Save
Share
Report

If you handle a session in PHP which of the below is the correct syntax for that?
(A) session_start() function
(B) $_SESSION[]
(C) isset() function
(D) session_destroy() function


Answer: (A)

Explanation: The first step is to start up a session. After a session is started, session variables can be created to store information. The PHP session_start() function is used to begin a new session. It also creates a new session ID for the user. For handling sessions() in PHP the correct syntax is session_start() function.

Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 20 Sep, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads