• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The session doesn't work on OS X

#1
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?
Reply

#2
There is no CodeIgniter 3.2.2.
Reply

#3
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.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.