Concept Flow - Starting and using sessions
Start PHP script
Call session_start()
Check if session exists
Create or resume session
Store or retrieve data in $_SESSION
Use session data in script
End script
The script starts, calls session_start() to create or resume a session, then stores or retrieves data in the $_SESSION superglobal for use during the script.