Purge of sessions table


#1

Hello all,

In SessionHandler, there is a garbage collection function to purge sessions.

However, there are more than 97000 lines in the ‘session’ table and, for most of them, the ‘expire_at’ column has a value in past.

cli cronjob is called daily.
When is the ‘sessions’ table supposed to be purged?

Can I safely execute the following SQL query:

delete from `sessions` where `expire_at` < unix_timestamp();