function to delete expired session entries

the function getSweeptimeDifference() returns the time difference between present time and time session entries were last deleted
the function clearExpiredSession() deletes expired session entries from db