[Solved] Know Time a visitor stays on website [closed]


Use Google analytics http://www.google.com.au/analytics/

A session can only change every time you call set or reset it.
But if you wanted to, you could use jQuery ajax, to run a script every X seconds or mins. Then in the file that you are ajax’ing in. Change your session data.

You will find analytics make a new request every time the user does something. Like moves the mouse, clicks on something, etc. So you would have to set up some js to do that as well.

1

solved Know Time a visitor stays on website [closed]