If this has to be persistent among server restarts, you should store it into database ...
Dne středa, 9. ledna 2013 9:38:34 UTC+1 sasogeek napsal(a): > > what code will I put in controllers/views to track the number of times > users visit a particular page such that anyone anywhere can see how many > times that page has been viewed by anyone anywhere....? > Eg. If I view page A 5 times, and you view page A 3 times, and another > person views page A 7 times, someone else who visits that page should see > something like > "Viewed 15 times..." > > i was reading about session but if my understanding serves me right, that > isn't a global variable, that is it's ip specific? and should the user > delete their sessions and cookies, it resets? but that aside, what are my > options? > --