Quote from: sottwell at Jun 12, 2013, 02:03 PM
Are you talking about front-end user, manager users?
This is for front end only. Also it wouldn't prevent the latest user from logging in. It would log the other user out.
For example
- User 1 signs in.
- User 2 then sign in, but using the same credentials as user 1
- User 1 is then signed out, perhaps with a message when they try and navigate to a protect page.
Does the IP add need to be stored, could a session ID be stored with what ever users ID this session is related to. Then on sign in the plugin/pre-hook check if the users id is in this table, if so get the session id related to it and then removes the row matching that ID from the modx_session table.