My two cents here:
A lot of the answer depends on how many people you expect to use your
system. If it’s more than a couple of handfuls, you are going to want
to automate the process somehow, so you don’t inadvertently give away
the store or keep someone from their purchases.
If it’s only a few or 20 or something like that, then you can probably
get away with using cPanel to make logins for them, and disabling the
logins of people who don’t renew.
If it’s more than that, then you need to do a little application
design. Start with some questions: How are you doing the commerce
part? Are you setting up recurring payments using Paypal or another
processor that supports this feature? What sort of notification do you
get each month that the bill has been paid?
I would start from this notification, and see if you can “pipe” it
into your access control system somehow. If you get a mail message, I
can share a bit of code (the robot that “reads” this mailing list and
turns messages into forum threads for the Web site). You will need to
have cpanel access to your server so you can set up a mail address on
your domain that will divert messages to your robot on the PHP command
line, but that’s fairly normal stuff, even on a shared server.
Once you have a way to get these messages, you will need to synch them
to your authorization system. To protect an entire folder full of
files, without needing to do any manual work, I would use an .htaccess
file to redirect all requests to that folder’s contents into a script
which could check to see if the user is authorized and signed in. This
script would check the same database that your payment system updated
when they made their purchase, so the two would never be out of date
with one another.
I can give you the bones of this solution if you want to build it
yourself, or you can spend a pleasant several days looking on
HotScripts for something that suits, and then spend a bunch of time
trying to make it look like the rest of your site.
Please do let me know what your comfort level is with code, and what
flavors you like.
Walter
On May 17, 2009, at 3:00 PM, Jamie Turner wrote:
• A way to require a password/login for a “members only” section of
my site.
• That way, people who have paid me a monthly fee will be able to
access the “in depth” section of my site.
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options