Forum Moderators: coopster
I open this thread to discuss the possible solutions.. here are few solutions that i have in mind..
- Set cookie for 24 hrs and store file ids which user visited and check them on each file page (limited due to cookie size)
- Store all values in session instead of cookie
- Create table in database and store all values in db and check table whenever user visit file page. (resource hungry solution)
What would you do if you fall in the same situation?
Thanks,
Jojy
Does it make sense to update view counter if user views more than 1 time file page? in a day or so? I think no.
I think you have answered that question for yourself, and rightly so. You are the one that determines the statistics you choose to track, store and display. As far as the solution? The cookie value seems as though it should work effectively but I guess it all depends on how many files you are dealing with amongst other variables. You may find that your update process is not so bad after all!