|
Post by shakil01 on Apr 29, 2024 1:09:53 GMT -5
_maxlifetime 172800 php 0 此方法与第一种方法几乎相同(通过php ini配置)。 3.对于在 Bitrix24 门户上拥有管理权限但不想直接使用服务器文件的用户来说,在管理面板中 设置会话时间是最简单的方法。 要设置会话时间,您需要转至“管理”面板并转至“设置”面板。接下来,您需要转到用户组并在安全部分中为所需组设置所需的会话时间。默认情况下,设置“不覆盖”选项 - 这意味着默认会话持续时间值取自服务器设置。 权限设置 我们已经确定了会议时间,让我们继续吧。 第二步 是确定门户的托管提供商并在所使用的资源方面进行更改。 如果您不知道哪个提供商为您提供服务,您可以使用第三方服务运行诊断: 确定托管 巴拉圭 WhatsApp 号码 如果您的托管提供商是 CloudFlare,那么突然注销是可以理解的 - Bitrix24 安全工具终止会话。 要更正该错误,您需要更改站点的 dbconn php 文件。该文件位于以下路径的 php_interface 文件夹中: 管理面板→内容→站点结构→文件和文件夹→Bitrix→php_interface 结构管理 单击“编辑为 PHP”并添加以下行: $_SERVER["REMOTE_ADDR"] = $_SERVER['HTTP_CF_CONNECTING_IP']; 您需要将其插入到?>符号之前,否则将不起作用。 编辑结构 PS Bitrix CMS 中的会话与一个 IP 地址绑定,因此如果您的 IP 地址发生变化,您将自动无法再登录。 第三步 是检查用户会话存储文件夹中的写访问权限。如果发生什么事情,纠正它们。 访问权 第四步 是检查以下系统文件是否有多余的空格或字符: 数据库连接 php 初始化文件 这些文件位于 php_interface 文件夹中,路径与第二步相同: 管理面板→内容→站点结构→文件和文件夹→Bitrix→php_interface 要诊断此类错误,您还可以运行管理面板中的系统检查工具。 系统检查 第五步 ,授予PHP权限。为此,您需要更改 dbconn php 文件,该文件位于: 管理面板→内容→站点结构→文件和文件夹→Bitrix→php_interface 选择“编辑为 PHP”并注释掉(输入 //)以下行: //@umask(~BX_DIR_PERMISSIONS); 提供访问权限 在我们的案例中,第二步是决定性的——遇到问题的客户使用了 CloudFlare 的服务。值得注意的是,Bitrix24 团队也不建议使用 CloudFlare 的代理: 重要的 我们更正了设置,但不影响主机上存储的系统文件。随后的检查没有发现任何错误。该公司的员工继续在门户上工作,而没有被每分钟输入的登录名和密码分散注意力。
|
|