Y
Y
yischyk2021-08-13 11:46:19
PHP
yischyk, 2021-08-13 11:46:19

How secure is authorization?

How authorization works:

Table users: login, password, cookie

Пользователь переходит на страницу логина-> вводит данные, я проверяю, есть ли они в базе-> if found, I take a cookie (a random string from the database) and save it to the browser.

On each page of the site, I check the user's key to see if it is in the database.

I don't use session from php, just a cookie. How correct is this option in general, and from a security point of view?

upd: the question is in fact, the answers are also asking in fact, please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2021-08-13
@firedragon

Better fasten oauth2
Especially since the entrance through the social. networks are now practically standard.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question