make login duration based on the last active request

Closes-Bug: 1395420

Change-Id: Ib3963f2a4a5653f168e868afc79e8dc0ab40392c
Merge "make login duration based on the last active request" into dev/experimental