8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says

Just FYI I tried, using FF which works with onunload, catching the event using JS, passing it to Flash and then from Flash to the server… didn’t work. Its all closed down too fast for the server communication to take place so this definetly isn’t something worth attempting…

i’d stay away from any sorta onunload event or javascript hack. just give them a session that expires X minutes after the last activity was received on the server. this will cater for power outs, javascript disabled, browser crashes, browsers/security plugins that restrict unload events.

yeah I think this is going to be the way to handle this, onunload just isn’t reliable enough :(

Cheers guys :)

8186 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says
(whats the go with <code> tag? – nl2br / gsub(/\n/, ’<br />‘) )

for code use the < p r e > tag?

by
by
by
by
by
by