title: Laravel 5.5 Log in user using event listener
body: <p>So, I'm trying to log in a user on Laravel 5.5 using SSO. I'm using a library and it works fine, data come back correctly. However when on Listener I try to Auth::login or any Session data, it's not saved. Sessions works fine from any other point of the app, but not in Listener Events. </p>
  
  <pre><code>&lt;?php
  
  namespace App\Listeners;
  
  use App\User;
  use Illuminate\Support\Facades\Auth;
  
  use \Aacotroneo\Saml2\Events\Saml2LoginEvent;
  use Illuminate\Queue\InteractsWithQueue;
  use Illuminate\Contracts\Queue\ShouldQueue;
  
  class AuthListener
  {
      /**
       * Create the event listener.
       *
       * @return void
       */
      public function __construct()
      {
          //
      }
  
      /**
       * Handle the event.
       *
       * @param  object  $event
       * @return void
       */
      public function handle(Saml2LoginEvent $event)
      {
          $messageId = $event-&gt;getSaml2Auth()-&gt;getLastMessageId();
          // your own code preventing reuse of a $messageId to stop replay attacks
          $user = $event-&gt;getSaml2User();
          $attributes = $user-&gt;getAttributes();
  
          $id = $attributes['id'];
          $laravelUser = User::where('id', $id)-&gt;first();
  
          \Session::push('name', 'test');
          Auth::login($laravelUser, true);
  
      }
  }
  </code></pre>
  
  <p>Now, at the <strong>Auth::login($laravelUser, true)</strong> the user is logged in correctly, I did check. But as soon as the page refresh sending to the final URL the session is gone.</p>
  
  <p>Any Ideas?</p>