Jump to content

How to find session duration in PHP?


Jagand

Recommended Posts

You cannot tell how long a user spends on the page using pure PHP.  You'll have to use a javascript function that "checks in" with the server and updates the timestamp every few seconds.

 

However, there's not really a need for this, as leaving the window open in the background would break your stats.

 

-Dan

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.