Our website is being accessed by some bots, and as a result our session database has a LOT of entries for anonymous users.
The who's online frequently shows over 30000 usersĀ We are also using an integrated version of phpBB and its session table also has that many entries.
This makes the loading of the home page slow. We have even seen php out of memory issues when we logon as administrator.
Deleting the entries for anonymous users from both session tables fixes that issue.
Of course we could set the session timeout to a very low number, but that will also negativelyt affect users that are logged in.
So I was thinking of creating a Sql script that deletes anonymous rows from bothĀ session table after several minutes of inactivity.
Is this something that we can do with an Auto action?
And how would we do that?
Any hint would be appreciated.
Robert