checked this link: How to change the session timeout in PHP?
but couldn't solve the issue...
> > $twenty_days = 60 \* 24 \* 20; // 20 days in minutes
session_cache_expire($twenty_days);
session_start();
AND TRIED
ini_set('session.cookie_lifetime', xxx);
ini_set('session.gc_maxlifetime', xxx);
EDIT: Solved with this:
session_set_cookie_params('604800', '/', null, true, true);
// Start the session
session_start(); }