nyfiken
07-24-2005, 09:25 AM
Hi!
I have written some code that creates a session with the time when a visitor comes to my homepage and write a code in a text file for each pages that are requested together with the time.
What I have been doing all the day is to write some code that compare the start time with the end time(the last witten request)
I have cut the time strings into separate strings for minutes and seconds, but in the end I found out it didn't work. Look at this:
start time 12:58:20 PM and end time is 1:03:10 PM
If I compare the minutes 58 - 03 the result will be 55 minutes! The visitor has only been to the site for 5 minutes....!
Anyone that have some good advice how to solve this? Looking forward to get some replies!
Thanks nyfiken
I have written some code that creates a session with the time when a visitor comes to my homepage and write a code in a text file for each pages that are requested together with the time.
What I have been doing all the day is to write some code that compare the start time with the end time(the last witten request)
I have cut the time strings into separate strings for minutes and seconds, but in the end I found out it didn't work. Look at this:
start time 12:58:20 PM and end time is 1:03:10 PM
If I compare the minutes 58 - 03 the result will be 55 minutes! The visitor has only been to the site for 5 minutes....!
Anyone that have some good advice how to solve this? Looking forward to get some replies!
Thanks nyfiken