PHP session_start() Function
What is session_start Function?
The "session_start()" function is used to initialize session data.
In the above syntax the function does not have parameters, but the function informs server that sessions are going to be used.
$session = session_id();
echo "Session: $session<br/>";
In the above example first the session is started then the session id is displayed, user can go ahead with any other data operations.