# How to log user time logged in?

**URL:** <https://community.auth0.com/t/how-to-log-user-time-logged-in/76239>\
**Category:** Get Help\
**Created:** [January 12, 2022, 3:44am UTC](https://community.auth0.com/t/how-to-log-user-time-logged-in/76239 "2022-01-12T03:44:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![evan3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/evan3/32/34346_2.png) [@evan3](https://community.auth0.com/u/evan3)\
**Post date:** [January 12, 2022, 3:44am UTC](https://community.auth0.com/t/how-to-log-user-time-logged-in/76239/1 "2022-01-12T03:44:18Z")

</div>

My goal is to be able to generate a list of users showing how much time they were logged into my Nextjs web app with an active session (not logged out - browser not closed).

Does Auth0 have something built in for this?

Should I be trying to see if the session is still open with the getTokenSilently() method?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 13, 2022, 5:59pm UTC](https://community.auth0.com/t/how-to-log-user-time-logged-in/76239/3 "2022-01-13T17:59:34Z")

</div>

Hi @evan3,

Welcome to the Auth0 Community!

> [@evan3](#):
>
> Does Auth0 have something built in for this?

Unfortunately, there isn’t a feature built-in to calculate the user’s logged-in time.

If you have a moment, I would highly encourage you to submit and vote for this feature request through our [Feedback category](https://community.auth0.com/c/feedback/). In doing so, these features can be backlogged, prioritized, and then implemented according to the number of votes.

> [@evan3](#):
>
> Should I be trying to see if the session is still open with the getTokenSilently() method?

It may be possible to calculate the user’s logged-in time using the getTokenSilently() method. But regardless of any approach, it will require some hacking. There is also the option of checking your logs to determine the length of the user’s session.

Please let me know if you have any questions.

Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 28, 2022, 6:00pm UTC](https://community.auth0.com/t/how-to-log-user-time-logged-in/76239/4 "2022-01-28T18:00:29Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
