Visitors stats using CI |
[eluser]Mantero[/eluser]
how to count a visitors when they visit our site? what's the idea behind that? *edit the title
[eluser]Mantero[/eluser]
erm sorry, I mean using CI, is there a way to do that instead using those already built tools? I need to create my own visitors stat for my application
[eluser]Unknown[/eluser]
look at http://ellislab.com/forums/viewthread/81644/P0/
[eluser]InsiteFX[/eluser]
If you need to keep track of all visitors to site then you will need to log them in as a visitor! You will need an auth library and code to do this. table vistors: Code: CREATE TABLE `visitors_online` ( When someone accesses your site you log them in as a vistor automatically! Then if they login to your system you move them to the table below. Also you need to log them into the auth users table and set the session data. Table users_online: Code: CREATE TABLE `users_online` ( I think I should really code this complete auth library up sometime! InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |