I
I
Ivan Efimov2018-09-20 11:31:58
Yii
Ivan Efimov, 2018-09-20 11:31:58

How to disable auth_key cookie when authorizing to create (update) a session in Yii2?

i store sessions in the database, it is necessary to make it possible for the user to selectively delete the session (session) on one of the authorized devices
when the user has set rememberMe=false, the specific session from the database is easily deleted, but when rememberMe=true then even if the session is deleted from the database then he will create it anyway,
how can I get around this problem?
and another question .. after deleting the user's session on some other device, logout occurs only after the page is refreshed, how to make the logout be immediately without refreshing the page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-09-24
@webinar

how to make logout immediately without refreshing the page?

ajax
https://www.yiiframework.com/doc/api/2.0/yii-web-s...
https://www.yiiframework.com/doc/api/2.0/yii-web-s...
who is he? whom?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question