Page 1 of 1

Rest API - Logout

Posted: Fri Feb 02, 2024 1:49 am
by FingerlessGloves
I've made a few python scripts to gather monitoring data and also to manage some WireGuard tunnels.

Every time the scripts connect, it creates a "Active User" entry, and as the scripts run quite often I have a massive list of Active Users, which are not actually active any more. Is there a way I can do a log out after I've finished interacting with the REST API to clear down the "Active User" list, as if this runs for weeks, the list looks like it'll become a mile long, as it's not cleared any since it last rebooted. I've looked at the documentation and I see no mention of doing a logout, but surely there's a way to clear this list down 😅

Below are screenshots some of these connections in the list, and they've been there for over 24 hours now.
Example1.png
Example2.png

Re: Rest API - Logout

Posted: Sat Feb 24, 2024 12:51 pm
by merkkg
Did you ever find a solution to this, I have this issue as well. my active users is over 1,500 now

Re: Rest API - Logout

Posted: Tue Mar 05, 2024 12:54 am
by miku
Hi,
You can find solution in viewtopic.php?p=977598#p977598

Re: Rest API - Logout

Posted: Thu May 30, 2024 9:24 am
by salatt
/tool user-manager session? ROS 7.14.3 does not have this tool.
I have to same problem. Via is not unknow but REST API - unlogged users.
Any idea without reboot?