diff --git a/hwe/j_msg_get_recent.php b/hwe/j_msg_get_recent.php index 9a22adab..04d0faf8 100644 --- a/hwe/j_msg_get_recent.php +++ b/hwe/j_msg_get_recent.php @@ -28,7 +28,7 @@ if(count($lastMsgGet) >= 10){ $lastMsgGet = []; } } -$lastMsgGet[] = $now; +$lastMsgGet[] = TimeUtil::now(); $session->lastMsgGet = Json::encode($lastMsgGet); if($delayTime){ diff --git a/src/sammo/Session.php b/src/sammo/Session.php index 56b7661e..0a641b6d 100644 --- a/src/sammo/Session.php +++ b/src/sammo/Session.php @@ -204,6 +204,7 @@ class Session $this->set('acl', null); $this->set('reqOTP', null); $this->set('time', time()); + $this->set('lastMsgGet', null); return $this; }