title: Flask login cookie sets path
body: <p>I am using flask login to login via an API endpoint. The endpoint in question is</p>
  <pre><code>/auth/login
  </code></pre>
  <p>Once I have successfully logged in and I hit this path which is another endpoint I have created I get a not logged in error.</p>
  <pre><code>/company/addusertocompany
  </code></pre>
  <p>Upon further inspection I can see the session being set is like so:</p>
  <pre><code>session=.eJwljg; Path=/auth; HttpOnly;
  </code></pre>
  <p>As you can see it is limiting the session to path /auth and therefore no other endpoints work when I require the user to be logged in. This is from Postman but I presume it does the same on a web browser. Has anyone ran into the same issue and if so how did you get around it?</p>
  <p>If anyone needs to see the code I can post it too but it is rather large and I didn't want to spam this question with anything that isn't required.</p>