getSessionData('auth_uid'); } /** * Store the current user id in the session */ protected function persistCurrentUser() { $user = $this->user(); $this->updateSessionData('auth_uid', $user ? $user->getId() : null); } }