Answer the question
In order to leave comments, you need to log in
How to make cross-domain authorization?
Hello! Our project has a bunch of domains for each language: project.ru project.com, project.de, etc.
Now they wanted to make it so that when switching the language, it would switch to the appropriate domain. At the same time, you need to save authorization if the user has already been logged in.
How is this usually done? I googled, even I didn’t find anything sensible ....
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
How did you google?
Multi domain session
shared login system options
not?
Well, as options - a single server for sessions and authorizations, or a redis server
store the username id and token in cookies and session
pass it with a transition to another domain and each individual domain will simply check their authenticity
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question