Skip to content

Magento sets wrong cookie domain

I have two store views. The default store view and a store view for english language.

If I go to the english store view, then im logged out and need to login again… so I want to set the same cookie domain as in my default store view to the english store view.

Current state:

Cookie domain of my default store view:    test.company.de
Cookie domain of my english store view:    test-en.company.de

So I’ve set the cookie domain in my english store view to test.company.de but if I clear all cookies and login in the english store view, then in chrome developer tools I see that it still uses test-en.company.de instead of test.company.de.

I already flushed all magento cache with bin/magento c:f