CodeIgniter Forums
The session doesn't work on OS X - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: The session doesn't work on OS X (/showthread.php?tid=65879)



The session doesn't work on OS X - dabdoonet - 08-04-2016

I have developed a project in CodeIgniter 2. It works well on Windows, Android and iOS. I can login and explore my account successfully in (Chrome, IE, OPERA, SAFARI and FIREFOX) on Windows(Safari, Chrome, Firefox) on Android(Safari, Firefox, Chrome) on iOS 9.3. Also, the login works in any browser on OS X, but after exploring some pages, the session is being lost.

Yesterday I have update my project to version 3.2.2 but I get the same error.

My session settings:

$config['sess_cookie_name'] = 'ci_session';

$config['sess_expiration'] = 0;
$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'] = TRUE;
$config['sess_match_useragent'] = FALSE;
$config['sess_time_to_update'] = 300;

Before updating to version 3.2.2, the session were not saved every time on database when i have logged from os x, but now the session is saved correctly in db.

Has anyone run into the same problem?


RE: The session doesn't work on OS X - Narf - 08-04-2016

There is no CodeIgniter 3.2.2.


RE: The session doesn't work on OS X - dabdoonet - 08-04-2016

Yes, you right is 3.2.0.

/**
* CodeIgniter Version
*
* @var string
*
*/
define('CI_VERSION', '3.2.0-dev');
/*

I've solved the error. I've added my domain name to cookie_domain.