From 3c0f6ec8e7208e4f945b60edb4e2dc2d8484c902 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 31 May 2022 12:37:02 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index f93f919e..941d918d 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -43,19 +43,7 @@ class BaseAuthedController extends BaseController { $_REQUEST )); phpcommon\sendError(1001, 'session expiration'); - } - } - if (!(getReqVal('c', '') == 'User' && getReqVal('c', '') == 'login')) { - $r = $this->_getRedis($this->_getAccountId()); - $sessionId = $r->get(LAST_SESSION_KEY . $this->_getAccountId()); - if (empty($sessionId)) { - $this->updateSession(myself()->_getAccountId(), - myself()->_getSessionId()); - } else if ($sessionId != $this->_getSessionId()) { - error_log('session expiration' . json_encode( - $_REQUEST - )); - phpcommon\sendError(1001, 'session expiration'); + die(); } } }