【问题标题】:How to access phpbb3 through an iframe without getting logged out如何在不注销的情况下通过 iframe 访问 phpbb3
【发布时间】:2021-08-31 17:55:44
【问题描述】:

由于在大多数浏览器中实现了新的security settings(尽管截至 8 月 21 日还没有 Firefox),用户在查看消息或按“新主题”时会退出 phpbb3。相关的 phpbb feature request 是低优先级,大约一年没有看到活动。

【问题讨论】:

    标签: php iframe phpbb3


    【解决方案1】:

    我通过进入 phpbb/session.php 并添加“samesite=None;”使 IE、Edge 和 Chrome 等浏览器适用于我们的公告板。到函数 set_cookie() 中的最后一条命令:

    header('Set-Cookie: ' . $name_data . (($cookietime) ? '; samesite=None;  expires=' . $expire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . ';' . (($httponly) ? ' HttpOnly' : ''), false);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-06
      • 2012-08-11
      • 2012-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多