I'm working on something. I'm trying to ensure that the user can log into their account with only one device. I want to achieve this by assigning a cookie to a user's account at the first login, saving it in the database, and checking whether the cookie and the value in the database match each time he logs in. Do you think this makes sense?
Asked
Active
Viewed 26 times
1
-
You might want to look at this https://stackoverflow.com/questions/54579405/get-unique-device-id-with-php-or-javascript – ShivCK Feb 26 '22 at 16:05
-
Yes, this is good but I think It's an active session. you store the active session of users and can restrict users to a single session. – sajjad rezaei Feb 26 '22 at 16:05