Control the sessions in Laravel

1

I have detected several flaws in my laravel sessions and I do not sincerely like to solve them.

When I log in and go to the Home. If I click on the back button of any browser, I go back to the Login screen. If I enter another incorrect password, I still go to the home as if I had logged in correctly.

When I click on Remember Me and do nothing, I do not know where I should "look" to see where it does not work.

When the session runs out, it gives me a system error. How can I control so that I go to a "friendly" error?

    
asked by Miguel Herreros Cejas 19.12.2017 в 12:48
source

1 answer

0

for the topic of Friendly Errors laravel brings its default views that you can also edit, but which are activated when you have the project in production mode and APP_DEBUG = false in your .env file. Now with the theme of the sessions you could create your own middleware to mitigate the errors that you find, there is a lot of documentation of how the middleware is implemented.

    
answered by 19.12.2017 в 13:09