New answers tagged


The code above will Magento (after passing the conditions) to redirect the customer to the route saved in the redirect cookie after successful login if the configuration which says that all customers be redirected to their accounts' dashboard instead Stores -> Configuration -> Customers -> Login Options -> Redirect Customer to Account Dashboard ...


Cookie domains with a prefix . are set by the server when your browser receives a response, and cookies created with javascript are without the prefix. You do not need the dot (.) before the domain, and subdomains will work under the parent domain.


Try adding the cookie domain as (if you have a prod env on that domain) and on your staging/ test environment.

Top 50 recent answers are included