title: How to implement a Garbage Collection function for SQLITE with PHP
body: <p>Is there some way to create garbage collection function that clean out old or expired data stored in SQLITE database?</p>
  
  <p>I am using it to create a session storage database , and I want the old expired sessions to be deleted. so i need some sort of garbage collection function that run periodically that auto delete these expired sessions which are wasting space.</p>