From fcbd598e3c9800aaf4e7268785e35f5d59340bd5 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Mon, 23 Dec 2019 12:09:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=97=B6=E9=97=B4=E6=94=B9=E4=B8=BA1=E5=B0=8F?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Model/MemberModel.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Model/MemberModel.class.php b/Application/Admin/Model/MemberModel.class.php index 8aa6a761b..79dd4e245 100644 --- a/Application/Admin/Model/MemberModel.class.php +++ b/Application/Admin/Model/MemberModel.class.php @@ -81,8 +81,10 @@ class MemberModel extends Model { 'data_empower_type'=>$adminData['data_empower_type'], 'data_president'=>$adminData['data_president'] ); - session('user_auth', $auth); - session('user_auth_sign', data_auth_sign($auth)); + //登录有效时间改为1小时 + session(['name'=>'user_auth', 'expire'=>60*60], $auth); + session(['name'=>'user_auth_sign', 'expire'=>60*60], data_auth_sign($auth)); + session('user_auth_expire', time()); }