码迷,mamicode.com
首页 > 其他好文 > 详细

yii2.0 报错Cookievalidationkey Must Be Configured With A Secret Key

时间:2016-06-29 18:41:29      阅读:1516      评论:0      收藏:0      [点我收藏+]

标签:

‘components‘ => [
‘request‘ => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
‘cookieValidationKey‘ => ‘test‘, //这里配置秘钥字符串就不会报错了
]
]

yii2.0 报错Cookievalidationkey Must Be Configured With A Secret Key

标签:

原文地址:http://www.cnblogs.com/maxomnis/p/5627611.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!