I dont understand how the $user object is accessible throughout ch9.
It is created from a pdo call and stored straight into a session. However, at the start of the chapter the footer checks it to see if a user can create page like so:
$user->canCreatePage()
how is $user available? Should we be using the session to access user?
$_seession['user']->canCreatePage()
Am i being dense here and missed something dead obvious? Can an object be stored statically in the same variable and acessible throughout the site if so why use sessions at all