【问题标题】:CodeIgniter Session encryption_keyCodeIgniter 会话加密密钥
【发布时间】:2011-11-02 18:28:38
【问题描述】:

在 CI 应用程序中使用会话它必须像这样使用 $config['encryption_key'] = "某事" 我可以在不设置双引号之间的情况下使用吗?

【问题讨论】:

    标签: codeigniter session


    【解决方案1】:

    答案是否定的。如果你打开 Session 核心库,它有这个:

    if ($this->encryption_key == '')
    {
         show_error('In order to use the Session class you are required to set an encryption key in your config file.');
    }
    

    没有真正的理由不拥有它,所以我就把它留在那里。如果您愿意,只需将其设为单个字母,但即使这样也不建议。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-10
      • 2014-05-31
      • 2016-11-15
      • 1970-01-01
      • 1970-01-01
      • 2010-11-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多