The solution may be to install the data through ini_set('session.gc_maxlifetime', <lifetime in seconds>);Of course, if you can change the configuration through PHP. Otherwise, you will need to set the correct values to php.ini:
ini_set(‘session.gc_maxlifetime’,30);
ini_set(‘session.gc_probability’,1);
ini_set(‘session.gc_divisor’,1);
cookie :
$expire=24*60*60;
session_set_cookie_params($expire);
session_start();