What are common issues when transitioning from PHP 5 to PHP 7, particularly with regards to SESSIONS?

One common issue when transitioning from PHP 5 to PHP 7 with regards to SESSIONS is the use of deprecated functions like session_register() and session_unregister(). These functions are no longer supported in PHP 7, so you need to update your code to use the $_SESSION superglobal array instead.

// Before PHP 7
session_start();
session_register('username');
session_unregister('username');

// After PHP 7
session_start();
$_SESSION['username'] = 'example_username';
unset($_SESSION['username']);