1.

Which one of the following function is used to start a session?(a) start_session()(b) session_start()(c) session_begin()(d) begin_session()The question was asked during an online interview.This question is from Session Handling-1 topic in portion File and Session Handling in PHP of PHP

Answer»

The CORRECT answer is (B) session_start()

Explanation: A session is started with the FUNCTION session_start() . The session variables are set with the PHP GLOBAL variable which is $_SESSION.



Discussion

No Comment Found

Related InterviewSolutions