I am using CakePhp4 and Authentication Plugin.
I have no clue for both.
What I want to achieve
When a user logs in, determine if that user is already logged in using another device then either prompt the user or logout the user
What I tried?
- Followed this doc
- Stored Session in database. Did exactly this
- This question might be a step in my objective but still no use.
What I couldn't do?
I made a custom session handler but the code is not affecting any thing.
Any hint is appreciated.