original_string: private function refresh(): void
      {
          $time = \time();
  
          if (isset($this->data['time']) && $this->data['time'] <= ($time - $this->expire)) {
  
              //delete session data
              $this->data = [];
  
              //regenerate session
              $this->regenerate();
          }
  
          $this->setSessionData($time);
      }
code: private function refresh(): void
      {
          $time = \time();
  
          if (isset($this->data['time']) && $this->data['time'] <= ($time - $this->expire)) {
  
              //delete session data
              $this->data = [];
  
              //regenerate session
              $this->regenerate();
          }
  
          $this->setSessionData($time);
      }
code_tokens: private function refresh ( ) : void { $ time = \ time ( ) ; if ( isset ( $ this -> data [ 'time' ] ) && $ this -> data [ 'time' ] <= ( $ time - $ this -> expire ) ) { //delete session data $ this -> data = [ ] ; //regenerate session $ this -> regenerate ( ) ; } $ this -> setSessionData ( $ time ) ; }
docstring: Refresh session.
  
  @return void
docstring_tokens: Refresh session .