Is it necessary to manually start a session in newer PHP versions, or are sessions automatically started?
In newer PHP versions, sessions are automatically started by default. There is no need to manually start a session using session_start() unless you want to customize the session settings or perform additional actions at the beginning of each session.
// No need to manually start a session in newer PHP versions
// Sessions are automatically started by default
// Code example without manually starting a session
$_SESSION['username'] = 'JohnDoe';