title: laravel 6 session restart through each request
body: <p>I'm working with Laravel 6, and my session driver is file. I've faced a <strong>419|page expired</strong> when I submit a form with post action and after tracing the codes I found out the session will restart after submission. Everything is good on local but on the server I've got this issue.
  I tried with a raw Laravel project and it worked!</p>
  
  <p>I've already checked directory permission, config/session.php,.env file.</p>
  
  <h1>.env</h1>
  
  <pre><code>SESSION_DRIVER=file
  SESSION_LIFETIME=120
  </code></pre>
  
  <h1>config/session.php</h1>
  
  <pre><code>'driver' =&gt; env('SESSION_DRIVER', 'file'),
  'lifetime' =&gt; env('SESSION_LIFETIME', 120),
  'expire_on_close' =&gt; false
  </code></pre>
  
  <p>Tnx for responding.</p>
  
  <p>the problem is not because of CSRF token, it's session's fault. evry time a new session and new token will be started so the token thet I send from input will be checked with another token !!!</p>