Welcome Guest, Not a member yet? Register   Sign In
sess_time_to_update and lost cookies
#1

[eluser]theseamusjames[/eluser]
Here's our config:

Code:
$config['sess_cookie_name']     = 'domaincom';
$config['sess_expiration']      = 1209600;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie']  = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']      = 'ci_sessions';
$config['sess_match_ip']        = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update']  = 6400;

$config['cookie_prefix']        = "";
$config['cookie_domain']        = "";
$config['cookie_path']          = "/";
$config['cookie_secure']        = FALSE;

Every 6400 seconds, though, we lose our cookies. If I then set our cookie domain to

Code:
$config['cookie_domain']        = ".mydomain.com";

They come back just fine. For 6400 more seconds. Adjusting our sess_time_to_update lower causes the cookies to drop and we have to change the domain to get them working again.

Any idea what's happening?
#2

[eluser]Aken[/eluser]
Have you modified your session library at all?

Are you using ajax on your website?
#3

[eluser]theseamusjames[/eluser]
No mods to the session library.

We do use AJAX.

I've managed a temporary work around by setting our SESS_TIME_TO_UPDATE to a very large number. Not ideal, but it's working until we get something better.
#4

[eluser]Aken[/eluser]
Check this out, see if it helps: http://stackoverflow.com/questions/79801...ajax-calls




Theme © iAndrew 2016 - Forum software by © MyBB