CodeIgniter Forums
Session Issue on IPad - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Session Issue on IPad (/thread-58310.html)

Session Issue on IPad - El Forum - 06-01-2013

Hello guys,

I've been having a lot of issues with sessions in Codeigniter and I'm about to go nuts. I'd like to solve this particular session issue before I do go nuts however:

I sign in on the IPad, an entry is created in the database for my session, and I'm redirected to the homepage as I should be. However, there is no session data (and hence, no "Welcome PoloRM" message at the top) -> I'm not logged in.

If I refresh the page, I'm suddenly logged in. Same thing happens when I log out, I have to refresh the page to get logged out. The issue was also reported by a user on Safari Mac (not mobile). The issue however, is not showing up on Firefox/Chrome/IE as far as I can tell.

I've even posted a post on stackoverflow but no one has replied, so if anyone has any pointers out there, please help.

Here are my settings:

$config['sess_cookie_name']  = 'cisession';
$config['sess_expiration']  = 84200;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name']  = 'sessions';
$config['sess_match_ip']  = TRUE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;