Hi, I'm planning to customise my amember login.php script so that if the user has an "individual" as opposed to an "institutional" subscription, the login is recorded in a text file; if the tally of logins within a few hours is very high this automatically suggests an account violation and I will automatically get an email rather than having to check the access logs manually. Anyway, I think I'd use "$_SESSION['_amember_user']['login']" to detect the username of the person logging in, but my question is, how do I "read" the subscription description of that user (to spot the word "individual" within it?). Many thanks in advance, Russel
This does not require customization. Every account should be an individual account. There is no need for an "institutional" subscription. No need for all this customization. aMember can be configured to watch for the same account logging in from different IP address. This is the kind of behavior that indicates password sharing. See the attached image that was taken from the Advanced Tab in the Configuration section.