title: Laravel Session::token keeps changing in every request when not using https://
body: <p>I have read almost 100+ questions in stackoverflow about this. But nothing helped me.</p>
  <p><strong>My problem:</strong></p>
  <p>Laravel Session::token is re-generated in each HTTP request when I upload my app in my shared hosting. The app works fine when the domain has https://. But if I load the app using http://, no forms work (shows 419 Page Expired). The app also works fine in my localhost (Windows 10 with apache server) even though it's also http://localhost.</p>
  <p>I can simply force to HTTPS using .htaccess to ignore the issue. But I want my app to be functioning in non-SSL domains also.</p>
  <p>If I hit <code>https://example.com/</code> 10 times, <code>dd(Session::token());</code> returns the same token <code>xZYdXs5UuXUSCZ5wHGELad9GuqjimkrPhMlsMepE</code> every time.</p>
  <p>And if I hit <code>http://example.com/</code> 10 times, <code>dd(Session::token());</code> returns different random tokens each time.</p>
  <p>My Hosting Server: Litespeed</p>
  <p>Laravel Version: 6.2</p>
  <p>PHP Version: 7.4</p>
  <p><code>.env</code> file</p>
  <pre><code>SESSION_DRIVER=file
  SESSION_LIFETIME=120
  </code></pre>
  <p><code>config/session.php</code> file</p>
  <pre><code>use Illuminate\Support\Str;
  
  return [
      'driver' =&gt; env('SESSION_DRIVER', 'file'),
      'lifetime' =&gt; env('SESSION_LIFETIME', 120),
      'expire_on_close' =&gt; false,
      'encrypt' =&gt; false,
      'files' =&gt; storage_path('framework/sessions'),
      'connection' =&gt; env('SESSION_CONNECTION', null),
      'table' =&gt; 'sessions',
      'store' =&gt; env('SESSION_STORE', null),
      'lottery' =&gt; [2, 100],
      'cookie' =&gt; env(
          'SESSION_COOKIE',
          Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
      ),
      'path' =&gt; '/',
      'domain' =&gt; env('SESSION_DOMAIN', null),
      'secure' =&gt; env('SESSION_SECURE_COOKIE', false),
      'http_only' =&gt; true,
      'same_site' =&gt; null,
  
  ];
  </code></pre>
  <p>Permission:</p>
  <pre><code>/storage 0755
  /storage/framework/sessions 0755
  </code></pre>
  <p>Please let me know if I should share any relevant information to make the issue more clear.</p>
  <p>Thank you.</p>