[英]CodeIgniter: Alternate method for sess_match_ip is set true for dynamic IP address
I have a CodeIgniter 3 application with MySQL as the database.我有一个 CodeIgniter 3 应用程序,其中 MySQL 作为数据库。 I had set the sess_match_ip to TRUE to check for the IP address of the users.
我已将 sess_match_ip 设置为 TRUE 以检查用户的 IP 地址。 Some of my clients has dynamic IPs which changes automatically.
我的一些客户有自动更改的动态 IP。 At the time of changing the IP address the application logged out them automatically.
在更改 IP 地址时,应用程序会自动将其注销。 Please suggest me a alternate solution to prevent the users forms log out with changing the sess_match_ip to false.
请建议我一个替代解决方案,以防止用户 forms 通过将 sess_match_ip 更改为 false 注销。
$config['sess_match_ip'] = TRUE;
Just disable sess_match_ip
.只需禁用
sess_match_ip
。 I know it looks like an attractive option, but it is simply not suitable for a typical public webapp on the inte.net.我知道它看起来是一个有吸引力的选择,但它根本不适合 inte.net 上的典型公共 Web 应用程序。
It can be used as an extra security layer for restricted admin areas where only a handful of users are permitted anyway, but that's quite rare.它可以用作受限管理区域的额外安全层,无论如何只允许少数用户使用,但这种情况很少见。 Its primary use is for intr.net systems where you control the whole.network and there are no regularly changing IP addresses.
它的主要用途是用于控制整个网络的 intr.net 系统,并且没有定期更改的 IP 地址。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.