concrete/controllers/single_page/dashboard/system/registration/automated_logout.php
public function save()
    {
        if (!$this->token->validate('save_automated_logout')) {
            $this->error->add($this->token->getErrorMessage());

            $this->flash('error', $this->error);

            // Redirect away from this save endpoint
            return $this->factory->redirect($this->action());
        }

        $post = $this->request->request;
        // Save the posted settings
        $this->config->save(self::ITEM_IP, filter_var($post->get('invalidateOnIPMismatch'), FILTER_VALIDATE_BOOLEAN));
        $this->config->save(self::ITEM_USER_AGENT, filter_var($post->get('invalidateOnUserAgentMismatch'), FILTER_VALIDATE_BOOLEAN));
        $this->config->save(self::ITEM_INVALIDATE_INACTIVE_USERS, filter_var($post->get('invalidateInactiveUsers'), FILTER_VALIDATE_BOOLEAN));
        $this->config->save(self::ITEM_INVALIDATE_INACTIVE_USERS_TIME, filter_var($post->get('inactiveTime'), FILTER_VALIDATE_INT));

        $this->flash('message', t('Successfully saved Session Security settings'));

        // Redirect away from this save endpoint
        return $this->factory->redirect($this->action());
    }
public function save()
    {
        if (!$this->token->validate('save_automated_logout')) {
            $this->error->add($this->token->getErrorMessage());

            $this->flash('error', $this->error);

            // Redirect away from this save endpoint
            return $this->factory->redirect($this->action());
        }

        $post = $this->request->request;
        // Save the posted settings
        $this->config->save(self::ITEM_IP, filter_var($post->get('invalidateOnIPMismatch'), FILTER_VALIDATE_BOOLEAN));
        $this->config->save(self::ITEM_USER_AGENT, filter_var($post->get('invalidateOnUserAgentMismatch'), FILTER_VALIDATE_BOOLEAN));
        $this->config->save(self::ITEM_INVALIDATE_INACTIVE_USERS, filter_var($post->get('invalidateInactiveUsers'), FILTER_VALIDATE_BOOLEAN));
        $this->config->save(self::ITEM_INVALIDATE_INACTIVE_USERS_TIME, filter_var($post->get('inactiveTime'), FILTER_VALIDATE_INT));

        $this->flash('message', t('Successfully saved Session Security settings'));

        // Redirect away from this save endpoint
        return $this->factory->redirect($this->action());
    }
public function save ( ) { if ( ! $ this -> token -> validate ( 'save_automated_logout' ) ) { $ this -> error -> add ( $ this -> token -> getErrorMessage ( ) ) ; $ this -> flash ( 'error' , $ this -> error ) ; // Redirect away from this save endpoint return $ this -> factory -> redirect ( $ this -> action ( ) ) ; } $ post = $ this -> request -> request ; // Save the posted settings $ this -> config -> save ( self :: ITEM_IP , filter_var ( $ post -> get ( 'invalidateOnIPMismatch' ) , FILTER_VALIDATE_BOOLEAN ) ) ; $ this -> config -> save ( self :: ITEM_USER_AGENT , filter_var ( $ post -> get ( 'invalidateOnUserAgentMismatch' ) , FILTER_VALIDATE_BOOLEAN ) ) ; $ this -> config -> save ( self :: ITEM_INVALIDATE_INACTIVE_USERS , filter_var ( $ post -> get ( 'invalidateInactiveUsers' ) , FILTER_VALIDATE_BOOLEAN ) ) ; $ this -> config -> save ( self :: ITEM_INVALIDATE_INACTIVE_USERS_TIME , filter_var ( $ post -> get ( 'inactiveTime' ) , FILTER_VALIDATE_INT ) ) ; $ this -> flash ( 'message' , t ( 'Successfully saved Session Security settings' ) ) ; // Redirect away from this save endpoint return $ this -> factory -> redirect ( $ this -> action ( ) ) ; }
An action for saving the Session Security form
This method will manage saving settings and redirecting to the appropriate results page

@return \Concrete\Core\Http\ResponseFactory|\Symfony\Component\HttpFoundation\Response
An action for saving the Session Security form This method will manage saving settings and redirecting to the appropriate results page