To be able to compute accurately a session time is much more complex than it seems.

To put it simply: User sessions expire after 30 minutes of inactivity. By inactivity we measure any kind of mouse event, keyboard event, scroll, or whatever indicates user activity.