<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic XML API call creates persistent Web session in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-call-creates-persistent-web-session/m-p/378391#M2519</link>
    <description>&lt;P&gt;In the CLI, "show admins" will report my current CLI session.&lt;/P&gt;&lt;P&gt;If I also log into the Web interface, "show admins" will now show a Web session in addition to the CLI session.&lt;/P&gt;&lt;P&gt;After I click "logout" on the Web interface, "show admins" reveals that my Web session is now gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I run a python script using the XML API from a remote server to retrieve the ARP table entries, and then run&lt;/P&gt;&lt;P&gt;"show admins", I now see a new Web session for the Admin used in the script.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Yet the Web session persists.&lt;/P&gt;&lt;P&gt;I tried issuing a follow-up xml api command, &lt;SPAN class="s1"&gt;?type=op&amp;amp;cmd=&amp;lt;exit&amp;gt;&amp;lt;/exit&amp;gt;, but that returns error code 17.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;The "debug cli on" feature fails to reveal anything about the "logout" button on the Web interface.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Why does a Web session persist after using the XML API and is there a proper way to close it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2021 16:56:41 GMT</pubDate>
    <dc:creator>doug.fsu</dc:creator>
    <dc:date>2021-01-07T16:56:41Z</dc:date>
    <item>
      <title>XML API call creates persistent Web session</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-call-creates-persistent-web-session/m-p/378391#M2519</link>
      <description>&lt;P&gt;In the CLI, "show admins" will report my current CLI session.&lt;/P&gt;&lt;P&gt;If I also log into the Web interface, "show admins" will now show a Web session in addition to the CLI session.&lt;/P&gt;&lt;P&gt;After I click "logout" on the Web interface, "show admins" reveals that my Web session is now gone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if I run a python script using the XML API from a remote server to retrieve the ARP table entries, and then run&lt;/P&gt;&lt;P&gt;"show admins", I now see a new Web session for the Admin used in the script.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Yet the Web session persists.&lt;/P&gt;&lt;P&gt;I tried issuing a follow-up xml api command, &lt;SPAN class="s1"&gt;?type=op&amp;amp;cmd=&amp;lt;exit&amp;gt;&amp;lt;/exit&amp;gt;, but that returns error code 17.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;The "debug cli on" feature fails to reveal anything about the "logout" button on the Web interface.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Why does a Web session persist after using the XML API and is there a proper way to close it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 16:56:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/xml-api-call-creates-persistent-web-session/m-p/378391#M2519</guid>
      <dc:creator>doug.fsu</dc:creator>
      <dc:date>2021-01-07T16:56:41Z</dc:date>
    </item>
  </channel>
</rss>

