Commit d6ff3b3b authored by hujun's avatar hujun

expire_time

parent a739ba50
......@@ -259,6 +259,7 @@ class Basic extends Controller
$expire = Config::get('session.expire');
$expire = empty($expire) ? 7200 : $expire;
Cookie::set('PHPSESSID', session_id(), $expire); //更新session_id过期时间
Session::set("expire_time", time() + $expire - 300); //更新过期时间
}
return ;
}
......
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