Page 1 of 1

How to get the session durations.

Posted: Thu Nov 11, 2004 10:08 pm
by pramod
Hi ,
I want to get the time (duration) of a browser session that exist on my site.

That is if user starts reading his mail box (session starts).Loged off (session ends ). difference of these to event is the duration of a user exixt on my site.

On php there is no event like session_onend().

If there is any other way please help me.

Thanks
Pramod.K.V.P

Posted: Thu Nov 11, 2004 10:31 pm
by John Cartwright
Generally this is done by adding the session_id to a database, and on each reload compare the time of it entered to the current time.