Search For All Post

Simple Login Form In PHP With Mysql Database

Every website uses simple Login module for their member. It is one of the most important security feature for any Website. It is important in Login Form we need to take care not to apply SQL Injection. For that we need to use prepared statement. Prepared Statement executes same SQL statement repeatedly. SO we will use Prepared Statement which will prevent SQL Injection.

In this form, we us two Field "Username" and "Password", If user submit valid username and password, then he can access his/her account. we also add "Remember Me" option that will store password in Browser cookie, so next time user We also use Call Back feature that will prevent user to go back after he log out. If user click on previous page, then browser will redirects to Login form........

prevent back button after logout laravel

Today, I noticed that even after logout I can go to the page in laravel web application, which is not right because this is a securite issue. Usually this problem is found in many larval web applications. If you get this issue, you are right place.

Use laravel middleware to stop this problem, For which you have to create a new laval middleware. In this post, we have created a PreventBackHistory name middleware, which explain how to prevent the button after logout.

So, in this post, I will show you step by step on how to prevent the button after logout in laravel web application, only you have to follow and create a new middleware.........