php - Restrict user and guest actions for sending messages -
i building site (with cakephp) users able send sms messages. registered users have more rights guests. lets guests allowed send 5 messages every 24 hours while registered can send 20.
how restrict them?
so, guests, need identify them, should ip address, session, cookie.. maybe mix of all? store guest information in database, file or what? if store them in database, need truncate table every 24 hours...?
as registered users, same thing applies. should track message counter in db, session, file... easiest way?
Comments
Post a Comment