Laravel 5.5 由于存在不活动令牌,页面已过期

2024-02-15

我刚刚使用 php 7.2 在共享主机上部署了我的 laravel 应用程序。 应用程序在 DigitalOcean 和我当地的 Homestead 上运行良好。

但是当使用 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

每个表单都有令牌,如下所示

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

但仍然得到:

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

None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Laravel 5.5 由于存在不活动令牌,页面已过期 的相关文章

随机推荐