code: public function close(): void {
          if ($this->is_active()) {
  
              // Set the last active timestamp
              $this->_data['last_active'] = time();
  
              // Write and close the session
              config('debug') ? session_write_close() : @session_write_close();
          }
      }
docs: Sets the last_active timestamp and saves the session.
  
  $session->close();
  
  [!!] Any errors that occur during session writing will be logged,
  but not displayed, because sessions are written after output has
  been sent.