title: Javascript read session cookies only
body: <p>I am wondering if there is an existing trick to filter on the cookies.
  I need to get the session cookies only and to discard the other.
  The usual way to read cookies using Javascript is:</p>
  
  <pre><code>document.cookie
  </code></pre>
  
  <p>However this prints all the cookies, my goal here is to get the session cookies only. I know that unlike "normal" cookies a session cookie has an expiration date.</p>
  
  <p>Does anyone have a code sample to achieve this session cookies extraction?</p>
  
  <p>Best,
  Alexandre</p>