What is the issue with the function $_Session in PHP 5.4.x environment?

In PHP 5.4.x environment, the issue with the function $_Session is that it is case-sensitive. It should be written as $_SESSION in all uppercase letters. To solve this issue, make sure to use $_SESSION instead of $_Session in your PHP code.

// Fix for $_Session issue in PHP 5.4.x
session_start();

$_SESSION['username'] = 'JohnDoe';