title: PHP Session reset on refresh with chrome but stay normal in private navigation
body: <p>after hours and hours of research I leave it to you.
  I am creating an administrator part for my site in MVC architecture with a .htaccess which redirects everything to a main index.php.
  I made a classic connection system with a classic hash and some personal ip ban systems to avoid attacks.
  Until then everything is normal, I use $_SESSION to keep the connection active and my session_start() is called before the site to be sure to be correctly placed.</p>
  <p>the problem is that my session resets each time I refresh the page.
  I did a lot of testing and I affirm that it resets well, I know that it is not from PHP, that I did not misuse my session but that chrome or gandi in one way or another another act on my session and break it to me.
  For example, when I use chrome in private browsing or firefox or when I'm local I have no problem and the connection goes perfectly well
  I haven't seen anyone with a similar problem and I don't know what to do, I uninstalled and reinstalled chrome, I reset some cookies, I reset some data but nothing to do, it doesn't change anything.</p>
  <p><strong>EDIT:</strong> here is some more code in order to be more clear on the problem
  to show a concrete example of the problem, I made a test file which creates a session and adds 1 each time we refresh the page
  on chrome it leaves me at 1 but in private browsing it adds me well +1 at each refresh</p>
  <p><strong>index.php</strong> (of my test project)</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  session_start();
  
  // faire un compteur avec $_SESSION[&quot;count&quot;] (comment for CoPilot)
  if(!isset($_SESSION[&quot;count&quot;])){
      $_SESSION[&quot;count&quot;] = 0;
  }
  $_SESSION[&quot;count&quot;] += 1;
  
  var_dump($_SESSION[&quot;count&quot;]);
  </code></pre>
  <p><strong>EDIT:</strong>
  ok, so in private browsing I have this result and $_SESSION[&quot;count&quot;] is incremented correctly
  <a href="https://i.stack.imgur.com/uuviY.png" rel="nofollow noreferrer">network pass private nav</a></p>
  <p>but in normal browsing $_SESSION[&quot;count&quot;] does not increment and 5 JS scripts are added to the request but I don't know where they come from, it may come from some Google Chrome extension but I have already tested without extension and with and it doesn't change anything, I don't understand why $_SESSION[&quot;count&quot;] refuses to increment.<br />
  <a href="https://i.stack.imgur.com/d1XK6.png" rel="nofollow noreferrer">network pass normal nav</a></p>