jeudi 16 janvier 2020

Laravel session out not working in middleware

Im using laravel 5.8 and im using middleware to check for session timeout. I have mentioned 1hr in my .env for session timeout. My controller works fine and the session variable becomes null but the same session variable in the middleware retains the session value.

Unable to understand the reason.

Im checking the session in the middleware like:

session('id')

I have also changes the session value to 1hr in config/app.php

Plz let me know how to solve this problem.

Thanks



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/30qmzCO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire