php - Symfony 可以改变 'secret' 参数破坏什么吗?

标签 php symfony security parameters

参数.yml 文件中有一个名为 的参数 secret 默认为 ThisTokenIsNotSoSecretChangeIt但它应该改为别的东西。

如果在生产中更改此参数的值会发生什么情况?它可以打破任何东西吗?

最佳答案

它不会破坏任何东西。更改值 secret 不时的参数甚至被认为是一种很好的做法,官方文档建议:

http://symfony.com/doc/current/reference/configuration/framework.html#secret

唯一需要注意的是:

However, keep in mind that changing this value will invalidate all signed URIs and Remember Me cookies. That's why, after changing this value, you should regenerate the application cache and log out all the application users.

关于php - Symfony 可以改变 'secret' 参数破坏什么吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51947898/

相关文章:

java - 缓存安全信息安全吗?

security - Grails过滤器:无法使其正常工作!

PHPExcel - 如何使用 phpexcel 库更改图表的颜色、边框和背景?

php - 我如何在 mysql 中编写 Group By 查询日期时间字段

php - 当我已经在模拟另一个用户时模拟另一个用户?

symfony - 将CKeditor集成到我的symfony2项目中

php - 交响乐团 3 : Undefined class constant 'AUTHENTICATION_ERROR'

PHP 3DES 加密

php - 检查 while 循环中所有字段的值,无需在每个字段上使用单独的 if 语句

银光。安全问题