编程语言
首页 > 编程语言> > php-laravel 5.7.15 419对不起,您的会话已过期.请刷新,然后重试

php-laravel 5.7.15 419对不起,您的会话已过期.请刷新,然后重试

作者:互联网

您好我正在使用laravel 5.7.15
我正面临着问题enter image description here

<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: ex@abc.xyz">
<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>

这是我的代码
我不知道是什么错误
如果我评论csrf验证表单kernal.php,则它是我的登录路线,然后会话无法正常工作
任何帮助,谢谢..

解决方法:

>确保您硬刷新页面;通过执行以下操作也清除缓存:

PHP的工匠缓存:清除
>确保对您的日志文件夹具有正确的权限:

chmod -R 755存储/日志
>确保为您的应用程序生成密钥:

PHP的工匠键:生成
>检查在使用post和CSRF时是否有Web中间件组包装您的路线;

我解决了我的问题!希望能帮助到你! :D

标签:laravel,laravel-5-7,csrf-token,php
来源: https://codeday.me/bug/20191024/1924003.html