|
|
| XP is just a number | |
| PerlMonks |
| on Nov 05, 2009 at 23:47 UTC ( #805363=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Analog has asked for the
wisdom of the Perl Monks concerning the following question:
Hello Monks I'm looking for any advise on doing something which is pretty much impossible to guarantee (and also a subject that has been beaten to death, so sorry for bring it up again). We have a custom "forums type" application where we want to try to track the truly unique page views per person/machine as we plan to give incentives to those that are the most popular/most viewed. Right now I'm planning on starting with just IP's and cookies (will probably be looking at flash shared objects soon). I'm interested in anyone's opinions on a better approach then what I'm currently doing and also if anyone has any ideas on how to best deal with cookie size. The plan so far is this 1. Have a table created that stores a page view, the table will have the message id, IP address, date viewed and a user id (if the person is logged in). for example: Then when viewing a page I would start with From there the plan would be That is about it, I know this code isn't copy/paste/run but its more to explain the flow then test anything. Like I said, I'd like to hear if anyone has any issues to the approach and/or if anyone has any comments on the cookie. Right now what bothers me most about the above is there is no real limit to the size of the cookie as it could kept getting added to forever, which means at some point it will be too big. TIA for any help!
|
|
||