cicibo Posted January 18, 2007 Share Posted January 18, 2007 Hi there... I am doing a website that record duration of time when a user view a page..example :page1 = 5 secondspage2 = 7 secondspage3 = 10 second..and so on...does anybody know how to solve this problem...any idea....thanks Quote Link to comment Share on other sites More sharing options...
DeathStar Posted January 18, 2007 Share Posted January 18, 2007 dont understand you correctly..do you want to find out how long the user has been viewing the page? Quote Link to comment Share on other sites More sharing options...
cicibo Posted January 18, 2007 Author Share Posted January 18, 2007 Yup, that is what i want to make Quote Link to comment Share on other sites More sharing options...
taith Posted January 18, 2007 Share Posted January 18, 2007 on the page itself, set a $_SESSION[time]=time(), then on your exiting page, you just $seconds=time()-$_SESSION[time]; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.