concrete/src/User/PostLoginLocation.php
public function getPostLoginRedirectResponse($resetSessionPostLoginUrl = false)
    {
        $result = $this->responseFactory->redirect(
            $this->getPostLoginUrl($resetSessionPostLoginUrl),
            Response::HTTP_FOUND
        );
        // Disable caching for response
        $result = $result->setMaxAge(0)->setSharedMaxAge(0)->setPrivate();
        $result->headers->addCacheControlDirective('must-revalidate', true);
        $result->headers->addCacheControlDirective('no-store', true);

        return $result;
    }
public function getPostLoginRedirectResponse($resetSessionPostLoginUrl = false)
    {
        $result = $this->responseFactory->redirect(
            $this->getPostLoginUrl($resetSessionPostLoginUrl),
            Response::HTTP_FOUND
        );
        // Disable caching for response
        $result = $result->setMaxAge(0)->setSharedMaxAge(0)->setPrivate();
        $result->headers->addCacheControlDirective('must-revalidate', true);
        $result->headers->addCacheControlDirective('no-store', true);

        return $result;
    }
public function getPostLoginRedirectResponse ( $ resetSessionPostLoginUrl = false ) { $ result = $ this -> responseFactory -> redirect ( $ this -> getPostLoginUrl ( $ resetSessionPostLoginUrl ) , Response :: HTTP_FOUND ) ; // Disable caching for response $ result = $ result -> setMaxAge ( 0 ) -> setSharedMaxAge ( 0 ) -> setPrivate ( ) ; $ result -> headers -> addCacheControlDirective ( 'must-revalidate' , true ) ; $ result -> headers -> addCacheControlDirective ( 'no-store' , true ) ; return $ result ; }
Create a Response that redirects the user to the configured URL.

@param bool $resetSessionPostLoginUrl Should the post-login-related data stored in session be cleared?

@return \Symfony\Component\HttpFoundation\Response
Create a Response that redirects the user to the configured URL .