original_string: public function renew()
      {
          if (!$this->_hasSession() || $this->_isCLI) {
              return;
          }
  
          $this->start();
          $params = session_get_cookie_params();
          setcookie(
              session_name(),
              '',
              time() - 42000,
              $params['path'],
              $params['domain'],
              $params['secure'],
              $params['httponly']
          );
  
          if (session_id()) {
              session_regenerate_id(true);
          }
      }
code: public function renew()
      {
          if (!$this->_hasSession() || $this->_isCLI) {
              return;
          }
  
          $this->start();
          $params = session_get_cookie_params();
          setcookie(
              session_name(),
              '',
              time() - 42000,
              $params['path'],
              $params['domain'],
              $params['secure'],
              $params['httponly']
          );
  
          if (session_id()) {
              session_regenerate_id(true);
          }
      }
code_tokens: public function renew ( ) { if ( ! $ this -> _hasSession ( ) || $ this -> _isCLI ) { return ; } $ this -> start ( ) ; $ params = session_get_cookie_params ( ) ; setcookie ( session_name ( ) , '' , time ( ) - 42000 , $ params [ 'path' ] , $ params [ 'domain' ] , $ params [ 'secure' ] , $ params [ 'httponly' ] ) ; if ( session_id ( ) ) { session_regenerate_id ( true ) ; } }
docstring: Restarts this session.
  
  @return void
docstring_tokens: Restarts this session .