CodeIgniter Forums
Looking for a new Dedicated Server problems with CI on current server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Looking for a new Dedicated Server problems with CI on current server (/showthread.php?tid=40208)



Looking for a new Dedicated Server problems with CI on current server - El Forum - 04-01-2011

[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.


Looking for a new Dedicated Server problems with CI on current server - El Forum - 04-01-2011

[eluser]InsiteFX[/eluser]
Did you check your servers time?

Did you set your time zone?

InsiteFX


Looking for a new Dedicated Server problems with CI on current server - El Forum - 04-01-2011

[eluser]Ty Bex[/eluser]
I will check that tomorrow Thanks