original_string: public function savesessionAction()
      {
          $processSetOrAddSessionData = ['success' => false, 'errorMessage' => ''];
          $request = $this->getEvent()->getRequest();
  
          if ($request instanceof Request && $request->isPost()) {
              $processSetOrAddSessionData = $this->setOrAddSession($request);
          }
  
          $sessionData = $this->sessionManager->getSessionData();
          $renderedContent = $this->viewRenderer
                                  ->render('zend-developer-tools/toolbar/session-data-list', ['sessionData' => $sessionData]);
  
          return new JsonModel([
              'success' => $processSetOrAddSessionData['success'],
              'errorMessage' => $processSetOrAddSessionData['errorMessage'],
              'san_sessiontoolbar_data_renderedContent' => $renderedContent,
          ]);
      }
code: public function savesessionAction()
      {
          $processSetOrAddSessionData = ['success' => false, 'errorMessage' => ''];
          $request = $this->getEvent()->getRequest();
  
          if ($request instanceof Request && $request->isPost()) {
              $processSetOrAddSessionData = $this->setOrAddSession($request);
          }
  
          $sessionData = $this->sessionManager->getSessionData();
          $renderedContent = $this->viewRenderer
                                  ->render('zend-developer-tools/toolbar/session-data-list', ['sessionData' => $sessionData]);
  
          return new JsonModel([
              'success' => $processSetOrAddSessionData['success'],
              'errorMessage' => $processSetOrAddSessionData['errorMessage'],
              'san_sessiontoolbar_data_renderedContent' => $renderedContent,
          ]);
      }
code_tokens: public function savesessionAction ( ) { $ processSetOrAddSessionData = [ 'success' => false , 'errorMessage' => '' ] ; $ request = $ this -> getEvent ( ) -> getRequest ( ) ; if ( $ request instanceof Request && $ request -> isPost ( ) ) { $ processSetOrAddSessionData = $ this -> setOrAddSession ( $ request ) ; } $ sessionData = $ this -> sessionManager -> getSessionData ( ) ; $ renderedContent = $ this -> viewRenderer -> render ( 'zend-developer-tools/toolbar/session-data-list' , [ 'sessionData' => $ sessionData ] ) ; return new JsonModel ( [ 'success' => $ processSetOrAddSessionData [ 'success' ] , 'errorMessage' => $ processSetOrAddSessionData [ 'errorMessage' ] , 'san_sessiontoolbar_data_renderedContent' => $ renderedContent , ] ) ; }
docstring: Save Session by Container and its key.
docstring_tokens: Save Session by Container and its key .