On a site with premium user account subscriptions, I’d like to be able to limit logins to one computer at a time. The most straightforward way to accomplish this would be to limit by IP, but I haven’t had any luck finding a plugin to accomplish this. Does anybody know of one I can use to get this functionality?
Related: Login security question – Does WP show me if I’m logged in from multiple locations?
As already suggested in a comment above of mine, technically a (cookie based) session is limited to one IP at a time by using the Safer Cookies (WordPress Plugin).
This does not prevent another login with the same username and password because it is a feature of WordPress to allow you to login multiple times with your credentials and therefore with multiple IPs.
What you would like to achieve is to prevent multiple logins at all then. According to Otto, this is not trivial. Stacy writes, that the Wishlist Member (WordPress Plugin) has such a functionality built in: IP-Login Protection. So probably that plugin or part thereof is a solution to your issue. IANAL, but that plugin is violating the GPL license as it restricts you to make use of your wordpress derivate. I would not use it.
But probably there is another plugin out there available, or it’s quite easy to extend Login LockDown (WordPress Plugin) to bind the whole session to the last valid IP recorded.
User can login only from one computer at a time. If user inactive 30 minutes, he can login from another computer. Try in different browsers.
You must make 2 steps:
2./ Paste this code in function.php.