public function postLogout (Request $request)
    {
        if ($redirect = $request->getSession ()->get ('post-login-redirect'))
        {
            $request->getSession ()->set ('post-login-redirect', null);
            $request->getSession ()->set ('cancel-login-redirect', null);

            return Response::redirect ($redirect);
        }

        return Response::redirect (URLBuilder::getURL ('/'));
    }
public function postLogout (Request $request)
    {
        if ($redirect = $request->getSession ()->get ('post-login-redirect'))
        {
            $request->getSession ()->set ('post-login-redirect', null);
            $request->getSession ()->set ('cancel-login-redirect', null);

            return Response::redirect ($redirect);
        }

        return Response::redirect (URLBuilder::getURL ('/'));
    }
public function postLogout ( Request $ request ) { if ( $ redirect = $ request -> getSession ( ) -> get ( 'post-login-redirect' ) ) { $ request -> getSession ( ) -> set ( 'post-login-redirect' , null ) ; $ request -> getSession ( ) -> set ( 'cancel-login-redirect' , null ) ; return Response :: redirect ( $ redirect ) ; } return Response :: redirect ( URLBuilder :: getURL ( '/' ) ) ; }
Called after a redirect
@param Request $request
@return Response
@throws DataNotSet
Called after a redirect