If you want to access your sess vars through the superglobal array you must register them like -
$_SESSION['username'] = 'some value';
and retrieve the value using -
$_SESSION['username'].
If you want to use the other method you must have regsiter_globals On
Set it like -
$username = 'some value';
session_register('username');
and retrieve using the global var -
$username
Hope this helps 😉