title: Does electron store cookies from the mainWindow in memory or on the hard drive somewhere? If the hard drive then where?
body: <p>While working on an Electron application I realised that the auth token that I store in a cookie isn't stored in the 'Cookie' file in its cache files, which reside at the path specified here in this post <a href="https://stackoverflow.com/questions/31446782/how-to-clear-the-cache-data-in-electronatom-shell/44675132#44675132">How to clear the cache data in Electron(atom shell)?</a>.</p>
  
  <p>Since I don't know the internals of how Electron or Chromium work I was hoping someone would help me answer the following questions:</p>
  
  <ol>
  <li>Does Electron store the cookies from the "mainWindow"* in the memory or in a file on the hard drive? If it does store it on the hard drive where and in which file exactly? (I need this info to evaluate a security issue)</li>
  <li>It would also be nice to know if the cookie stored by electron which uses Chromium is encrypted in some way.</li>
  </ol>
  
  <p>*What i mean by mainWindow is when I open my web-application inside a window via electron code and then allow a user to log in. I need to know where that cookie that is stored after log in, is stored.</p>
  
  <p>If anyone has any information regarding this do let me know.</p>