I have a bilingual website, it works fine in localhost. but when I run it on a production environment, and people try to change the language, it doesn’t work, they need to press the F5 key in the browser so that the site reboots in their chosen language. Any ideas?? Thank...
public function __construct()
{
parent::__construct();
$this->lang->load('navmenu', $this->session->userdata('language'));
$this->lang->load('search', $this->session->userdata('language'));
$this->lang->load('home', $this->session->userdata('language'));
}
/.../
function ChangeLanguage ($lang)
{
$this->session->set_userdata('language', $lang);
redirect(base_url());
}
anchor('lang/changelanguage/spanish','Español')
anchor('lang/changelanguage/english','English')
source
share