Home  >  Article  >  Backend Development  >  ThinkPHP令牌异常如何解决

ThinkPHP令牌异常如何解决

WBOY
WBOYOriginal
2016-06-13 13:39:31835browse

ThinkPHP令牌错误怎么解决
是这样的,我的程序用thinkphp做的,之前的添加很正常,在使用create方法的时候也没出现表单令牌错误的情况,但是今天不知道怎么了,所有的添加都出现了“表单令牌错误”,我上网看着说是在模板中添加{__NOTOKEN__}可以,我添加了,但是也没有见效。请问这种情况是什么原因,为什么会这样呢?

------解决方案--------------------
2.0版本的话,建议你升级一下,2.0版本有bug
------解决方案--------------------
以前用过。貌似有这个bug 、 、可以吧他关掉
------解决方案--------------------
2.x版本要么升级3.0
要么关闭表单令牌验证。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn