Commit cb049e41 authored by esf's avatar esf

Merge remote-tracking branch 'origin/master'

parents 96f10922 0d995931
...@@ -140,9 +140,18 @@ class MY_Controller extends CI_Controller ...@@ -140,9 +140,18 @@ class MY_Controller extends CI_Controller
$isonline = FALSE; $isonline = FALSE;
} }
if($u_session){
$expiredate = empty($u_session['expiredate'])?'':$u_session['expiredate'];
$date = date('Y-m-d');
if($expiredate && $date > $expiredate){
//清空之前的登陆数据
$this->broker_model->logout();
$isonline = FALSE;
}
}
} }
//不在线跳出登陆 //不在线跳出登陆
if(!$isonline) if(!$isonline)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment