I've a website where we've a lot of subdomains + our main website on the same domain (the website is coded in Codeigniter).
For example:
sub.domain.com
sub1.domain.com
sub2.domain.com
domain.com
Our main domain is used as the system for our clients and the subdomains is where our clients customers can make a booking.
We've a HUGE problem with auto logout after between 5 minutes to 1 hour.
Our current settings is the following:
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'sessionfield';
$config['sess_expiration'] = 2592000;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
$config['cookie_domain'] = '.domain.com'; //real domain removed for security
$config['cookie_path'] = '/';
$config['cookie_secure'] = FALSE;
$config['cookie_httponly'] = FALSE;
if($subdomain){
$config['encryption_key'] = '[key 1 goes here]'; // real key removed for security
}else{
$config['encryption_key'] = '[key 2 goes here]'; // real key removed for security
}
I've tried to search for almost every solution that has been writing about our there (change cookie_domain, change encryption key for sub domains vs main domain etc), but none of the solutions has worked.
So my question is, has anyone any kind of experience with this auto logout issue?
Looking forward to hear from you.