[eluser]Ty Bex[/eluser]
Hello all:
This is a sort of Codeigniter bug but mainly caused by the hosting company I currently use.
For some reason I am having massive problems with getting sessions to work.
They work on all browsers IE 7+/FF/CHROME/SAFARI from by dev linux box without issue.
At first I had the follow which did not work with IE only
Code:
$config['sess_cookie_name'] = 'ci_session';
$config['cookie_domain'] = "";
I then removed the '_' and added the domain name. Success?? so I thought.. It works with IE but now Chrome and Safari are not keeping their sessions.
Code:
$config['sess_cookie_name'] = 'cisession';
$config['sess_expiration'] = 7200;
$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'] = 300;
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "mywebsite.com";
$config['cookie_path'] = "/";
I am not sure if this is something that I can fix in the code or if it is a problem with the hosting comany.
Either way I would like to make a list of Recommend Hosting companies that work well with CodeIngiter.