Making sure that the transaction does not take too long
Log when users login or logout