Avoid close cron sessions while gc

This commit is contained in:
fbsanchez 2019-10-25 12:23:00 +02:00
parent 86fd1275be
commit 2a24e22335
1 changed files with 1 additions and 2 deletions

View File

@ -191,8 +191,7 @@ function pandora_session_gc($max_lifetime=300)
); );
// Deleting cron and empty sessions. // Deleting cron and empty sessions.
$sql = "DELETE FROM tsessions_php WHERE $sql = 'DELETE FROM tsessions_php WHERE data IS NULL';
data IS NULL OR id_session REGEXP '^cron-'";
db_process_sql($sql); db_process_sql($sql);
return $retval; return $retval;