Answer the question
In order to leave comments, you need to log in
How to make access to the site through authorization?
I can make an authorization form on the main page ( https://site.ru). But I need to ensure that when the left user comes in, he is thrown for authorization ( https://login.site.ru), and thus he does not get access to the site's information
Answer the question
In order to leave comments, you need to log in
I decided everything by learning about subdomains (subdomains)
use cookies. if the user has them, then he is immediately sent to the main site. if not, go to the authorization and registration page.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question