Chapter 19. Setup Housekeeping Tasks STEP 12

The only essential housekeeping task beyond normal database maintenance is to add a periodic job to delete expired sessions. This can be done by simply calling the delete_expired_sessions() function. This needs to be called often enough that the veil2.sessions table does not become bloated. How often will depend on the amount of traffic to your database.