【问题标题】:How to share sessions between two sites when suhosin is enabled?启用 suhosin 时如何在两个站点之间共享会话?
【发布时间】:2012-05-25 07:40:26
【问题描述】:

最近我们的客户端迁移到启用了 suhosin 的服务器。在那之前,我们使用会话共享在 wp 和我们的自定义 cms 之间切换。现在会话详细信息在加密后保存在数据库中。拔了一天的头发后,我们发现Suhosin是新服务器中的罪魁祸首。有没有办法从 suhosin 值中读取会话数据?

【问题讨论】:

    标签: php wordpress session suhosin


    【解决方案1】:

    您无法解密 suhosin 会话详细信息。最好更改身份验证方法。禁用 suhosin 是对安全性的妥协。

    【讨论】:

    • 感谢您的回答。您能提出任何替代方案吗?
    【解决方案2】:

    您可以在服务器或站点之间使用memcached to save sessions in persistent memory cache,而无需保存到文件或数据库中。

    您也可以更改suhosin transparent encryption options。例如,这可能会解决您的问题:

    suhosin.session.cryptdocroot
    
    Type: Boolean
    Default: On
    Flag that decides if the transparent session encryption key depends on the Documentroot field.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-12-01
      • 2016-10-11
      • 2017-09-13
      • 1970-01-01
      • 2013-02-15
      • 2016-07-16
      • 1970-01-01
      相关资源
      最近更新 更多