Log user sessions and their lengths.