My app has multiple domains and has a feature that let the user switch to other local site.
When a user switch locale he is being redirected between the domains (for each domain the app will set cookie with the same locale settings).
At the end of the redirect loop he will be redirected back to the "source" domain (and in case he set his locale to specific country which has a dedicated domain - he'll be redirected to the dedicated domain).
The locale cookies sets successfully during the redirection process (a simple cookie - not secure/http-only/strict).
The redirection process is based on an html meta tag (not a PHP header, because in that case the redirection will happen before the browser saves the cookies).
The problem is:
The authentication cookie gets deleted from the source domain. The authentication cookie is http-only, secure and strict (and is valid for a long time, so it should not expire).
I guess the issue is connected to the cookie security settings but I can't figure out why. Any help?