Yii Session - Problem with gcSession


i have a problem with the gcSession on Yii2. I stored sessions in database. But old and inactive session will not delete from database table.

If i called manually session_gc() in my script, the old sessions are deleted.

My php.ini settings:


I am at a loss. Maybe someone has a tip for me?

Thank you…

session.gc_probability/session.gc_divisor * 100 = 1/1000*100 = 0,1 so the probability of cleanup is about 10%.

Many thanks for the answer. I am honored that you took the time to do this.

I’ll increase the values ​​to see what happens then.