My problem is that my session is empty on each request. I suppose that because for example when I change currency or language it doesn't change.
For example in this part of code in system/language.php it always goes into the last else:
if ($code) {
$this->code = $code;
} else {
if (isset($this->session->data['language']) && array_key_exists($this->session->data['language'], $this->languages)) {
$this->set($this->session->data['language']);
} elseif (isset($this->request->cookie['language']) && array_key_exists($this->request->cookie['language'], $this->languages)) {
$this->set($this->request->cookie['language']);
} elseif ($browser = $this->detect()) {
$this->set($browser);
} else {
$this->set($this->config->get('config_language'));
}
}
Any help pls?
Thks.