title: How to get permission for cookies from user in Flask
body: <p>I have a website built with Flask and Flask-Login, so I know it generates cookies at some point. But my question is more basic than this.</p>
  
  <h3>Does a Flask application always, and immediately, generate cookies?</h3>
  
  <p>If no, are there any tools to allow me to identify which part of my application does generate cookies at which point, for example is it possible to monitor Chrome Dev tools when operating the website?</p>
  
  <p>The context for this question is GDPR compliance and specifically trying to request permission at the start (without initially creating a cookie!) and then when the user clicks accept have a process that means that user (anonymous or otherwise) won't see that permission request banner again (until local browser cache clearing) </p>