load->helper('cookie'); $lang = isset($_SESSION['site_lang']) ? $_SESSION['site_lang'] : 'de'; $_SESSION['site_lang'] = $lang; foreach($this->lang->is_loaded as $loadedName => $loadedLang) { if($loadedLang != $lang) { $this->lang->load($loadedName, 'de'); // Fallback $this->lang->load($loadedName, $lang); } } foreach ($names as $name) { $this->lang->load($name, 'de'); $this->lang->load($name, $lang); } setlocale(LC_TIME, $lang); $rememberMe = get_cookie('rememberMe'); if($rememberMe != NULL) { $token = get_cookie('token'); var_dump($rememberMe, $token); } } }