PHP Session new session, this function generates a unique SID for the session and sends it to the browser as a cookie called PHPSESSID (by default). However, if the browser has sent a PHPSESSID cookie to the server because a session already exists, session_start() uses this existing session:
session_start(); |