Oh I see, so the time could be in-accurate?
What about from when they log on until they log off? or is that the same?
You have no accurate way of telling when a user leaves the site or even just leaves their PC, which is the problem I just explained. Hardly any users use the "logout" feature, most would just stay logged in forever or wait for the cookies to expire.