title: laravel livewire reading session message throws TypeError: Cannot read property 'fingerprint' of null
body: <p>The issue I'm facing is: every time I try to display a message from session I get an &quot;TypeError: Cannot read property 'fingerprint' of null&quot; error and after that I can't make any new ajax requests</p>
  <p>The method called when I submit the form</p>
  <pre class="lang-php prettyprint-override"><code>public function saveRolesPermissions()
      {
          $this-&gt;selectedPermissions = array_map(
              fn($permission) =&gt; array_filter($permission, fn($item) =&gt; $item != false),$this-&gt;selectedPermissions
          );
  
          foreach ($this-&gt;roles as $role) {
              if (array_key_exists($role-&gt;id, $this-&gt;selectedPermissions)) {
                  $role-&gt;permissions()-&gt;sync($this-&gt;selectedPermissions[$role-&gt;id]);
              }
          };
  
          session()-&gt;flash('message', __('dashboard.Permissions updated'));
      }
  </code></pre>
  <p>The layout part where I read the session</p>
  <pre class="lang-blade prettyprint-override"><code>@if(session()-&gt;has('message'))
      &lt;div class=&quot;alert alert-success alert-dismissible fade show mb-3&quot; role=&quot;alert&quot;&gt;
          {{session('message')}}
          &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;alert&quot; aria-label=&quot;Close&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;×&lt;/span&gt;&lt;/button&gt;
      &lt;/div&gt;
  @endif
  </code></pre>
  <p>The error I get:</p>
  <p><a href="https://i.stack.imgur.com/LR17I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LR17I.png" alt="Screenshot from console showing the mentioned error" /></a></p>
  <p>How do I solve this (apparently) session issue?</p>