Jump to content

Limit simultaneous logins to user accounts


Robin S
 Share

Recommended Posts

My project allows paying users access to protected front-end content and my client is concerned about users sharing their login details among a group rather than each purchasing an individual account.

Of course there is only so much you can do to protect against this and there will always be loopholes, but I'm wondering if I can provide some basic protection against this. My idea is a maximum of two IP addresses may be simultaneously logged in to any user account, but I'm not sure where to start with implementing this. Is there an existing module or snippet that would give me a starting point for limiting simultaneous logins?

I'm also interested in hearing any other ideas for tackling this issue. Thanks.

Link to comment
Share on other sites

Hi,

  I see this module :   http://modules.processwire.com/modules/login-notifier/  Written by Mr. Cramer himself. I have not done any coding for user-member/access functionality in Processwire so I can't speak from experience, sorry. I would say that that module by Ryan might contain what you need or at least point you in the right direction. Can't hurt to look.

Then you also have the API. - https://processwire.com/api/variables/user/

And last but not least - http://cheatsheet.processwire.com/user/user-methods/user-isloggedin/

Ok.. maybe not the last.. I found this also https://processwire.com/talk/topic/9811-frontenduser-login-logout-and-register-users-members/ .

Read the features list. It has functionality to check for a user who is already logged on.

Hope the above helps.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...