title: Chrome extension api chrome.sessions how to get session ID
body: <p>The chrome.sessions api specifies these three functions</p>
  
  <pre><code>getRecentlyClosed − chrome.sessions.getRecentlyClosed( Filter filter, function callback)
  getDevices − chrome.sessions.getDevices( Filter filter, function callback)
  restore − chrome.sessions.restore(string sessionId, function callback)
  </code></pre>
  
  <p>I see however no way to retrieve a sessionID to pass into the chrome.sessions.restore function. </p>
  
  <p>How can I get the current sessions ID for restoring it somewhen in future?</p>
  
  <p>Can I restore sessions indefinitely back in history respectively save a session?</p>