PDA

View Full Version : Help once again...



agent007
September 16th, 2001, 17:37
Hello... I have another question. Does anyone know or have a script (can be PHP or CGI) that outputs when the visitor last visited? Thanks in advance!

Regards,
agent007

agent007
September 16th, 2001, 22:58
...
Bump? C'mon, anyone have any ideas?

Bruce
September 16th, 2001, 23:01
I've seen this on a few sites before. but I can't remember where. I'll see if I can find it... tomorrow.

agent007
September 16th, 2001, 23:06
Okay, thanks, Phrozen. :)

LastActionHero
September 17th, 2001, 03:21
Can't you do it using cookies. When the user visits your website, check whether he has a cookie from a previous visit and calculate the time difference. The cookie must store the time at which it is set. Then update the previous cookie with the new cookie.


Maybe somebody can implement this idea?

agent007
September 17th, 2001, 08:39
I was thinking of that, or maybe it logs their IP. A cookie would be better, though, since if the user is on 56k, the IP changes with every reconnect...