A
A
artem1633972017-01-09 14:41:37
Yii
artem163397, 2017-01-09 14:41:37

Authorization in yii2 reset old sessions?

Hello! In a project on yii2, I changed the user's password, but the system does not throw me out, and lets me in according to the old data. How can I make the system ask for a password in this case?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
Evgeny Bukharev, 2017-01-09
@artem163397

Store the session in the database, crash the record when the password is changed

E
enchikiben, 2017-01-09
@EnChikiben

do logout after password change

A
artem163397, 2017-01-09
@artem163397

From my login there was an unknown count. of people. I will not force everyone to press logout

D
Dmitry Bay, 2017-01-09
@kawabanga

If you use modules, look additionally at the AuthKey parameter, you need to re-create it so that authorization fails.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question