xoops 2.3.3 登入問題

最近又發生登入的問題…
以為又是上一篇的問題…

查到的結果還好不是

在kernel/session.php裡面..
有一個$securityLevel 的設定..

/**
* Security checking level
*
* Possible value:
* 0 - no check;
* 1 - check browser characteristics (HTTP_USER_AGENT/HTTP_ACCEPT_LANGUAGE), to be implemented in the future now;
* 2 - check browser and IP A.B;
* 3 - check browser and IP A.B.C, recommended;
* 4 - check browser and IP A.B.C.D;
*
* @var int
* @access public
*/
var $securityLevel = 3;

在第129行開始…
進行sess_ip跟使用者ip的比對判斷

if ($this->securityLevel > 1) {
  $pos = strpos($sess_ip, ".", $this->securityLevel - 1);
  if (strncmp($sess_ip, $_SERVER['REMOTE_ADDR'], $pos)) {
    $sess_data = '';
  }
}

我只能說…
如果使用者環境是NAT ip pool
在這邊sess_data就會一直被清空..
要好好思考到底要不要使用這個設定了…
不使用的話就把$securityLevel設成0吧…

p.s 這個問題在2.0.17版好像就開始存在了…

[相關文章]

  1. 尚無回應.

  1. 尚無引用.