Yii Session - Problem with gcSession

Hello,

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:

session.gc_probability=1
session.gc_divisor=1000
session.gc_maxlifetime=1440

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.