title: How can I access cookie-session from client side?
body: <p>I am building an application single page using NodeJS, and want to use my cookie session (cookie-session npm) to verify if the user is logged in or not. From my node server side I can get and set the session cookie, but I do not know how to get from my client side. </p>
  
  <p>This is how I am setting up from my server side:</p>
  
  <pre><code>req.session.user_id = user[0]._id;
  </code></pre>
  
  <p>Where <code>user[0]._id</code> is my user id that I get from my mongodb.</p>