[eluser]bimtee[/eluser]
right so after some playing with the core files. I realized that
if ( ! $this->sess_read())
{
$this->sess_create();
}
in the Session.php constructor was always calling $this->sess_create(); no matter what. This was because
$this->sess_read() always returned false because the cookie it was looking for was being created and destroyed
.
.
.
// Fetch the cookie
$session = $this->CI->input->cookie($this->sess_cookie_name);
// No cookie? Goodbye cruel world!...
if ($session === FALSE)
{
log_message('debug', 'A session cookie was not found.');
return FALSE;
}
On SHARED hosting some of us live in countries where the time differs so 12:00PM here is 11:00PM is USA where my site is hosted. I think chrome uses time to help validate the legitimacy of cookies there the default 7200 = i think is causing the cookie to be destroyed
at some point sess_create will call the set _set_cookie function. which contains php native setcookie function with the said 7200 is created and destroyed by Chrome because of the time difference on your PC and your website host.
INCREASE that 7200 to a day or two!
SET THE DOMAIN AS WELL!