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,
        ]);
    }
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,
        ]);
    }
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 , ] ) ; }
Clear Session data.
Clear Session data .