- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
In the CLI, "show admins" will report my current CLI session.
If I also log into the Web interface, "show admins" will now show a Web session in addition to the CLI session.
After I click "logout" on the Web interface, "show admins" reveals that my Web session is now gone.
However, if I run a python script using the XML API from a remote server to retrieve the ARP table entries, and then run
"show admins", I now see a new Web session for the Admin used in the script.
Both the response and the request headers show that the connection is closed and "ss -t -a" shows no open TCP port from the client to the firewall.
Yet the Web session persists.
I tried issuing a follow-up xml api command, ?type=op&cmd=<exit></exit>, but that returns error code 17.
The "debug cli on" feature fails to reveal anything about the "logout" button on the Web interface.
Why does a Web session persist after using the XML API and is there a proper way to close it?
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!