code: protected function _setSession($key, $value = null) {
          if (isset($value))
              $this->_router->connection->session[$key] = $value;
          else unset($this->_router->connection->session[$key]);
      }
docs: 设置当前客户端连接的Session
  
  @param $key
  @param null $value