Add auto logout function. A user session will be killed after one day of inactivity.