简体   繁体   English

由于不活动,页面已过期。 请刷新并重试。 “在我登录后在我的生产托管 cpanel 中”laravel 5.5

[英]The page has expired due to inactivity. Please refresh and try again. "in my production hosting cpanel after i login" laravel 5.5

I'm getting the following error when I login with username and password:使用用户名和密码登录时出现以下错误:

I've tried:我试过了:

cache:clear 
route:clear 
view:clear 
config:clear 

but it not working但它不起作用

php artisan optimize 

When you clear you cache you have to config it as well.当您清除缓存时,您还必须对其进行配置。 Optimize command will do that for you (also clear your routes,files etc etc all in 1), or php artisan config:cache after clear Optimize命令将为您完成此操作(同时清除您的路由、文件等),或清除后php artisan config:cache

But that issue could come from your form itself.但这个问题可能来自您的表单本身。 Make sure in your form you have this field inside :确保在您的表单中包含此字段:

<form method="POST" action="/myPage">
    @csrf

// html goes here.
</form

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 该页面因不活动而过期。 请刷新,然后重试。 Laravel 5.5生产 - The page has expired due to inactivity. Please refresh and try again. Laravel 5.5 Production 提交表单时 Laravel 返回“页面因不活动而过期。请刷新并重试。” - When submitting a form Laravel returns "The page has expired due to inactivity. Please refresh and try again." laravel 5.5 由于不活动,页面已过期。 请刷新并重试 - laravel 5.5 The page has expired due to inactivity. Please refresh and try again 该页面因不活动而过期。 请刷新,然后重试 - The page has expired due to inactivity. Please refresh and try again 登录responsinator.com时出现“页面因不活动而过期。请刷新并重试” - "The page has expired due to inactivity. Please refresh and try again" when login in responsinator.com Laravel 5.5 登录和注册页面说:由于不活动,页面已过期。[TokenMismatchException] - Laravel 5.5 login and register page says:The page has expired due to inactivity.[TokenMismatchException] 该页面因不活动而已过期。请刷新并在“登录”中重试 - The page has expired due to inactivity.Please refresh and try again in Login “由于不活动,页面已过期” - Laravel 5.5 - “The page has expired due to inactivity” - Laravel 5.5 Laravel 5.5页面由于不活动而过期 - Laravel 5.5 The page has expired due to inactivity Laravel 5.5:由于不活动,页面已过期 - Laravel 5.5: The page has expired due to inactivity
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM