1

i want to redirect the customer to the home page after session get expired. Right now it get redirected to the login page. How can i achieve it. Any help welcome.

1

You can do this by overriding

File: \vendor\magento\module-customer\Model\Session.php

Line Around : 494

    $this->response->setRedirect(
        $this->_createUrl()->getUrl(\Magento\Customer\Model\Url::ROUTE_ACCOUNT_LOGIN, $arguments)
    );

You just need change to the constant \Magento\Customer\Model\Url::ROUTE_ACCOUNT_LOGIN

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.