Sr. PHP Programmer Question:

How will you start a session in PHP?

Tweet Share WhatsApp

Answer:

A PHP session is easily started by making a call to the session_start() function.This function first checks if a session is already started and if none is started then it starts one. It is recommended to put the call to session_start() at the beginning of the page.

Download Senior PHP Programmer PDF Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
How will you check if a file exists or not using php?How will you open a file in readonly mode?