Monitoring system - few specifications
Posted: Sat May 31, 2008 10:39 am
Hello everyone
I want / need to implement a monitoring system into my website.
It should have the following specifications:
- how many times a user has logged on
- for how long has the user been logged on
- what pages whithin the site has the user visited
- how any times, if any, has the user changed password
I need to have a page monitoring has well:
- how many times has the page been visited
I was thinking of making this using classes, i think its the most appropriate. What i'm here to ask is what logic should i follow..
Should i have a main class called, for instance, monitoring and then 2 extends one for user_monitoring and another for page_monitoring?
Then on each extend i would have the functions that would insert into the database ( or update ) the information regarding the user / page. If a user entered a site, i would have a new user_monitoring("site_the_user_clicked") for instance, and on that class i would have an insert into a database of the site and user in question.
What do you think?
Thank you!!!
Ricardo
I want / need to implement a monitoring system into my website.
It should have the following specifications:
- how many times a user has logged on
- for how long has the user been logged on
- what pages whithin the site has the user visited
- how any times, if any, has the user changed password
I need to have a page monitoring has well:
- how many times has the page been visited
I was thinking of making this using classes, i think its the most appropriate. What i'm here to ask is what logic should i follow..
Should i have a main class called, for instance, monitoring and then 2 extends one for user_monitoring and another for page_monitoring?
Then on each extend i would have the functions that would insert into the database ( or update ) the information regarding the user / page. If a user entered a site, i would have a new user_monitoring("site_the_user_clicked") for instance, and on that class i would have an insert into a database of the site and user in question.
What do you think?
Thank you!!!
Ricardo