|
hello all,
need to do a bit of brainstorming, maybe you guys have an idea..
sites such as DNS stuff, pandora, jango all allow users to use their tools/features X number of times before registering... Im building a tool that I wish to do the same... now what I have available, CGI,C, PHP, mysql, linux, perl, apache ... what is the best way to do such a thing?
I'm not after code here, I'm after logic, heres the appraoched I can think of those I dont think are good enough - can anyone think of any alternatives or modifications?
1. PHP SESSIONS - when user accesses the website they get tracked in a session, everytime they use the tool the $_SESSION['count'] gets ++'d. This all very well and good but all they have to do is clear their sessions and its reset.
2. IP stored in DB. when user accesses website their IP is stored.. everytime they use the tool the code querys the DB see's if IP is there and again count gets plus 1... problem here is user can reset his IP and most connections do this for you anyway.. it also causes issues with shared office/school networks.
So pssh not sure the best way to tackle this.. i could just force signup before any use but I dont like that idea so much.
What do you think?
cheers all,
|