I'm not sure why, but I am losing my CodeIgniter session data between pages. And the session ID is changing. What could cause this? Shouldn't it be accessible from any page once it is set?
Session data is set here in the configuration page:
<?php $config = array(
'power' => $_COOKIE['power'],
'oemclass4' => $_COOKIE['class'],
'cooling' => $_COOKIE['cooling'],
'beam' => $_COOKIE['beam'],
'wavelength' => $_COOKIE['wavelength'],
'model_no' => $_COOKIE['part']);
$this->session->set_userdata('config', $config);
?>
The user is then redirected to a page with details of their configuration. The session userdata is still there then. Then they are Javascript redirected (window.location) to the login page and the userdata is gone then.