laravel 5.7.15 419 Sorry, your session has expired. Please refresh and try again
Solution 1
I do not really got the issue I have tried every solution but i have to install new Laravel and have to move all my Controllers, Routes, And views manually to get rid of the issue Really thanks to all of you guys :)
Solution 2
Make sure you hard refresh the page; Clear the cache as well by doing:
php artisan cache:clear
Make sure you have the right permissions for your logs folder:
chmod -R 755 storage/logs
Make sure to generate a key for your application:
php artisan key:generate
Check if, when using post and CSRF you have the
web
middleware group wrapping your routes;
I solved mine with that! Hope it helps! :D
Solution 3
Try to put @csrf
in bottom of <form>
tag
Solution 4
It's one time only? Just delete the folder storage/framework/cache/data
Ijaz Ahmed Bhatti
I am Php codeigniter laravel developer with a hand over jquery. working since 2013
Updated on June 07, 2022Comments
-
Ijaz Ahmed Bhatti almost 2 years
Hello i am using laravel 5.7.15 i am facing issue
<form method="post" action="my_post_Action" class="login100-form validate-form"> <input type="hidden" name="_token" value="B6et9cJOP5wNKodCPgCbAafDjpA5EMcRaaJhEJ9F"> <span class="login100-form-title"> Admin Login </span> <div class="wrap-input100 validate-input" data-validate="Valid email is required: [email protected]"> <input class="input100" type="text" name="email" placeholder="Email"> <span class="focus-input100"></span> <span class="symbol-input100"> <i class="fa fa-envelope" aria-hidden="true"></i> </span> </div> <div class="wrap-input100 validate-input" data-validate="Password is required"> <input class="input100" type="password" name="password" placeholder="Password"> <span class="focus-input100"></span> <span class="symbol-input100"> <i class="fa fa-lock" aria-hidden="true"></i> </span> </div> <div class="container-login100-form-btn"> <button class="login100-form-btn"> Login </button> </div> </form>
here is my code i don't know whats error it my login route if i comment
csrf
verification formkernal.php
then session not work Any Help thanks in advance .. -
Ijaz Ahmed Bhatti over 5 yearsit was working fine before 2 days back i just update composer and then this happen :(
-
Ryuujo over 5 yearsdid you find an answer in this one: I think your problem looks same: stackoverflow.com/questions/52583886/…
-
Ijaz Ahmed Bhatti over 5 yearsYes i have seen that and implement all answers still having the issue
-
Ryuujo over 5 yearstry to
composer dump-autoload
first -
Ijaz Ahmed Bhatti over 5 yearsactually i am on cpanel server :(
-
MD. Jubair Mizan over 5 yearsCan you confirm that you are use post on your route
-
デビット about 5 yearsThe worst solution ever
-
Christoph almost 5 yearsNot a solution at all?!
-
Ijaz Ahmed Bhatti over 4 yearsactually need to reinstall the laravel and then i replace app routes and view folder