<?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 Re: Session Management with the API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77035#M4509</link>
    <description>If you aren't using at least R80.20, definitely, as you can only have one active session per set of credentials in versions prior to that (if memory serves).&lt;BR /&gt;Even in current versions, it's generally better to utilize a separate user for API calls. &lt;BR /&gt;</description>
    <pubDate>Tue, 03 Mar 2020 23:21:50 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-03-03T23:21:50Z</dc:date>
    <item>
      <title>Session Management with the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77027#M4506</link>
      <description>&lt;P&gt;This may have been asked before, but I can't seem to find a good example for this, my pre-apologies if I missed it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there a guide anywhere for session management with the Management API? I keep running into the issue where the object I'm working on is locked.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My script basically:&lt;BR /&gt;* Login, get SID&lt;BR /&gt;* Do stuff (add rules / network objects)&lt;BR /&gt;* Publish&lt;BR /&gt;* Logout&lt;BR /&gt;&lt;BR /&gt;However, without fail, I seem to either crash the smart console because I've left a session hanging around, or I lock an object for the next run of my script.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you guys have an overall suggested strategy for handling session management?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks!!!&lt;BR /&gt;&lt;BR /&gt;Joey&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 20:25:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77027#M4506</guid>
      <dc:creator>jmcadams</dc:creator>
      <dc:date>2020-03-03T20:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Session Management with the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77029#M4507</link>
      <description>Sounds like you're working with the API in the intended way.&lt;BR /&gt;Once you publish your session, that should release the lock on any changed object/rule/etc.&lt;BR /&gt;Logging out should invalidate your SID.&lt;BR /&gt;&lt;BR /&gt;If you can reproduce this consistently, the file generated by api status -s might provide some clues.&lt;BR /&gt;That said, I recommend a TAC case.</description>
      <pubDate>Tue, 03 Mar 2020 20:57:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77029#M4507</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-03-03T20:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Session Management with the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77030#M4508</link>
      <description>&lt;P&gt;The other thing that I haven't tried yet (I just thought about it), but might be the issue. Should I be using a different user when I'm using the API?&lt;BR /&gt;&lt;BR /&gt;I'm using the same credentials for the API and the Smart Console. Is that a problem?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 21:06:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77030#M4508</guid>
      <dc:creator>jmcadams</dc:creator>
      <dc:date>2020-03-03T21:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Session Management with the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77035#M4509</link>
      <description>If you aren't using at least R80.20, definitely, as you can only have one active session per set of credentials in versions prior to that (if memory serves).&lt;BR /&gt;Even in current versions, it's generally better to utilize a separate user for API calls. &lt;BR /&gt;</description>
      <pubDate>Tue, 03 Mar 2020 23:21:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77035#M4509</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-03-03T23:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Session Management with the API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77129#M4514</link>
      <description>&lt;P&gt;I tried it with a new user last night and that seemed to alleviate the problem.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the help, much appreciated!!!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 14:13:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Session-Management-with-the-API/m-p/77129#M4514</guid>
      <dc:creator>jmcadams</dc:creator>
      <dc:date>2020-03-04T14:13:34Z</dc:date>
    </item>
  </channel>
</rss>

