diff --git a/libraries/Ion_auth.php b/libraries/Ion_auth.php index f567b1b2a..9b112de30 100644 --- a/libraries/Ion_auth.php +++ b/libraries/Ion_auth.php @@ -359,7 +359,7 @@ public function logged_in() $recheck = $this->ion_auth_model->recheck_session(); // auto-login the user if they are remembered - if (!$recheck && get_cookie($this->config->item('remember_cookie_name', 'ion_auth'))) + if (!$recheck && ($this->config->item('remember_users', 'ion_auth')) && get_cookie($this->config->item('remember_cookie_name', 'ion_auth'))) { $recheck = $this->ion_auth_model->login_remembered_user(); }