session_start(); $_SESSION['username'] = 'JohnDoe';
session_start(); echo 'Welcome back, ' . $_SESSION['username'];
if (session_status() == PHP_SESSION_NONE) { session_start(); }The PHP Session Start function is part of the PHP core library and doesn't require an external package or library.