Laravel 5.5 The page has expired due to inactivity token is present

为君一笑 提交于 2019-12-31 07:23:09

问题


I just deployed my laravel app on shared hosting with php 7.2. App is working fine on DigitalOcean and on my local Homestead.

But when hosting on shared hosting with php7.2

/opt/alt/php72/usr/bin/php -v
PHP 7.2.5 (cli) (built: May  2 2018 05:43:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.1.0, Copyright (c) 2002-2017, by ionCube Ltd.
with Zend OPcache v7.2.5, Copyright (c) 1999-2018, by Zend Technologies

Every form has token as you can see below

<input type="hidden" name="_token" value="yuRpoUdnDHdXqwS0n6hzTfprXXXXXZR8fg9IP">

But still getting:

The page has expired due to inactivity. 
Please refresh and try again.

来源:https://stackoverflow.com/questions/50593542/laravel-5-5-the-page-has-expired-due-to-inactivity-token-is-present

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!