A
A
Alexey2017-11-13 19:07:05
Yii
Alexey, 2017-11-13 19:07:05

Registering for AngularJS 5 using PHP Yii2 backend. How to check registration status?

I am using Yii2 backend framework. There is a certain registration logic. The Angular application is not inside Yii. Actually 2 separate servers.
The question is how to check if the user is registered inside Angular? What to use to be safe, up-to-date and not burden the server much?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Koryukov, 2017-11-13
@azovl

As usual, the server creates a session and saves its number in a cookie. And you pass these cookies with every request to the server, and the server sees the contents of the session, if it’s empty there, then it’s not authorized, and if it contains what you put there during authorization, then, damn it, it’s authorized.
Those. your case is no different from a classic web application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question