original_string: public function clearsessionAction()
      {
          $request = $this->getEvent()->getRequest();
          if ($request instanceof Request && $request->isPost()) {
              $this->sessionManager->clearSession($request->getPost('byContainer'));
          }
  
          $sessionData = $this->sessionManager->getSessionData();
          $renderedContent = $this->viewRenderer
                                  ->render('zend-developer-tools/toolbar/session-data-list', ['sessionData' => $sessionData]);
  
          return new JsonModel([
              'san_sessiontoolbar_data_renderedContent' => $renderedContent,
          ]);
      }
code: public function clearsessionAction()
      {
          $request = $this->getEvent()->getRequest();
          if ($request instanceof Request && $request->isPost()) {
              $this->sessionManager->clearSession($request->getPost('byContainer'));
          }
  
          $sessionData = $this->sessionManager->getSessionData();
          $renderedContent = $this->viewRenderer
                                  ->render('zend-developer-tools/toolbar/session-data-list', ['sessionData' => $sessionData]);
  
          return new JsonModel([
              'san_sessiontoolbar_data_renderedContent' => $renderedContent,
          ]);
      }
code_tokens: public function clearsessionAction ( ) { $ request = $ this -> getEvent ( ) -> getRequest ( ) ; if ( $ request instanceof Request && $ request -> isPost ( ) ) { $ this -> sessionManager -> clearSession ( $ request -> getPost ( 'byContainer' ) ) ; } $ sessionData = $ this -> sessionManager -> getSessionData ( ) ; $ renderedContent = $ this -> viewRenderer -> render ( 'zend-developer-tools/toolbar/session-data-list' , [ 'sessionData' => $ sessionData ] ) ; return new JsonModel ( [ 'san_sessiontoolbar_data_renderedContent' => $ renderedContent , ] ) ; }
docstring: Clear Session data.
docstring_tokens: Clear Session data .