Hi , I want to terminate all user login with one user_name together if the users see the current sessions and click in terminating all , all of them are log out like telegram . now I save sessions in db with user_id and show to user with sessions are online with your username , I know , I must change auth_key after delete session but It’s have one problem , in this case all users have cookie with one auth_key if I change auth_key all user and the current user log out , at the first I think about another table for auth_key and save auth_key with user_id in it when the user want to log in on the site , but I don’t know how set auth_key foreach user and create cookie _identity for it in each login
please help at this situation , and send your mind and the sultion this.