Jump to content
Larry Ullman's Book Forums

useyourillusiontoo

Members
  • Posts

    1
  • Joined

  • Last visited

useyourillusiontoo's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. 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
×
×
  • Create New...