Well, you could just put
Code: Select all
setcookie('cookie_holding_id', null, -100);I don't bother caching anything...messages are sent so frequently in a chatroom I don't really see the point - it probably takes just as long to check all the files, check dates, modification times etc...
And the window.onunload thing not working isn't a huge deal...it just means that people don't get a "... has left the chatroom" message for people using firefox.
I could just as well check every now and again to see if the user is still online, with the stat tracking i have set up throughout my site...I just haven't had time to work on my IM; other stuff has taken priority.
Anyway, I'm just throwing ideas at you...it's best to have all the options before you start. Your choice though