- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2018 06:14 PM
Hi Community gurus,
Investigating ways to expired session user, I was wondering any reasons that a user who's logged in but not showing in 'Logged in users' list?
The user can be seen in User Tokens list (sys_user_token_list.do)
but not shows in the Logged In Users list (v_user_session_list.do)
Any advice would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2018 06:48 PM
Hey Chen,
The table dynamically gets populated with users sessions. ServiceNow stores all of its configurations in database, but logged in sessions is actually part of the application layer and not the storage layer. As such, it's reading the logged in sessions from the Java application. As the applications run on each individual mode, and the nodes themselves do not communicate with one another, all the logged in users table shows you is the logged in users on the application node that you're on. Logging in to another node is a complete random hit and miss exercise of clearing your cookies and reconnecting to ServiceNow, hoping the load balancer sends you in a different direction to the node you want to be on. Not great then for finding out whose on your system.
Please Refer:
https://servicenowgems.com/2016/04/28/finding-logged-in-users/
how to get the number of users logged in?
Let me know if it doesn't works.
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 09:39 AM
Hey Grorge,
Please close this thread. then only this will be helpful for other community users.
Please mark my response as correct/Endorse so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.If you are viewing this from the community inbox you will not see the correct answer button.
If so, please review How to Mark Answers Correct From Inbox View
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-15-2019 11:43 PM
Hi! I have 2 questions about organizing the Logged in User (v_user_session) table:
1) why for one account there can be several records in this table (in my case about 5)? One of them is active, and the rest are not.
2) in fact, what is the meaning of the "activity" field? I understand that if a session is expired, then it should just disappear from the table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2021 05:16 PM
I have the requirement to find out if certain users are logged into the system at any given time. I have discovered that v_user_session only shows the users logged into a single node, the node that "I'm" logged into. I see from the comments above that:
"As the applications run on each individual mode, and the nodes themselves do not communicate with one another, all the logged in users table shows you is the logged in users on the application node that you're on."
That was from 4 years ago and, very surprisingly, it still seems to be the case. What is a good solution here? Does sys_user_tokens show logged in users from all nodes? If not, how can I find out if someone is logged in to any node at any given time?
Thanks.