PHP session expiring fast

0

My PHP sessions are expiring in a short time (5min), even using session_cache_expire (120), and would require at least 2 hours.

I'm using code similar to this:

session_cache_expire(120);
session_start();
if(!isset($_SESSION['id'])){ 
    header("Location: ../../index.html");
}else{
    $id = $_SESSION['id'];
}

In phpinfo () I have the following information:

    
asked by anonymous 28.08.2018 / 19:00

0 answers