I have the following variables set for sessions in my PHP application:
ini_set('session.cache_expire', 200000);
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_lifetime', 94608000);
ini_set('session.gc_maxlifetime', 94608000);
ini_set('session.save_handler', 'user');
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);
When I log in through my laptop (Chrome, Safari or Firefox), I never logged out (at least not for 3 years, as mentioned above). But when I log in on my iPad, I log out every week, and sometimes several times a week.
I tried using debug on my mac, deleting cookies, checking session cookies, etc. All of them have corresponding expiration dates (February 2016), but still I still logged out.
It seems like the iPad is ignoring the cookie_lifetime variable.
Has anyone encountered this problem before? Any ideas?
source