title: getting sessionid with javascript
body: <p>Under the headline:</p>
  
  <blockquote>
    <p>Finding the session id with javascript in the browser</p>
  </blockquote>
  
  <p>from this link:</p>
  
  <p><a href="http://docs.autopilot.apiary.io/#reference/api-methods/addupdate-contact/add-or-update-contact?console=1" rel="nofollow noreferrer">Link to Autopilot</a></p>
  
  <p>it says that I with the line of code can capture the Autopilot session id.</p>
  
  <pre><code>var sessionId = AutopilotAnywhere.sessionId;
  </code></pre>
  
  <p>I tried to set the line of code in the console, but I get undefined:</p>
  
  <p><a href="https://i.stack.imgur.com/WmgZJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WmgZJ.png" alt="enter image description here"></a></p>
  
  <p>I am not quite sure how to use this line of code. Can anybody see how I use the line of code?</p>