I'm just starting with PHP. I'm currently building a site that will allow anonymous users to view images ten times a day. Any image viewed will increase the counter as well viewing a certain image more than once. Viewing more than the counter limit per day will not be allowed unless they register.
Just wondering what can I do with sessions and the database in order to make this possible. Also, how can I reset the counters in every 24 hours?
Sample codes would be much appreciated. Thanks.
BTW, I'm using kohana 3.