Sessions
- Retrieving Data
- Retrieving All Session Data
- Determining If An Item Exists In The Session
- Storing Data
- Deleting Data
Retrieving Data
$_SESSION['user_id']
Retrieving All Session Data
$_SESSION
Determining If An Item Exists In The Session
if (isset($_SESSION['user_id'])
Storing Data
$_SESSION['user_id'] = $user->id;
Deleting Data
unset($_SESSION['user_id']);