|
-
I was currious if there is anyway to check if a user has left the site and if so to send variables they acquired to a txt file on my server.
I'm currently just checking for action every 30 secs and then updating the users variables to the txt file.
This is all just in the testing phase. My theory behind my (madness)method was that I would not be slowing down the site a terrible amount by sending variables every 30 seconds opposed to instantly sending them upon being created. And if the user does leave I only lose what variables they created in the last 30 sceonds.
Any insight from you veterans would be very much appreciated!!
Thanks
Chris
-
Angkor-What?
javascript
It's possible to have create action on exit... check out some porn or mp3 websites... same thing... when u try to leave the pop up 1000000000 new windows.... u could probably do the same but with some other action than window.new() the script is also at http://www.cartoentje.nl go there, and then leave... cartoentje will wave u goodbye!
Hope this will help ya a little,
Gekke
-
Yes, I believe it is the onUnload event that you wanna use in the body tag. Basically, it's the opposite of onLoad.
But you should still use the method you are imploying now as a failsafe. It is possible that the user may leave without exiting properly. If so, onUnload wont do any good.
L8r.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|