LoginModel->autoLogin(); if (!isset($_SESSION['site_lang']) && isset($_COOKIE['language']) && in_array($_COOKIE['language'], ['de', 'en', 'fr'])) { $this->session->set_userdata('site_lang', $_COOKIE['language']); redirect(base_url(uri_string())); } ?>