Hey guys i need some help with this shoutbox. I thought the whole thing was sound until i found this problem. If you go onto the shoutbox in your browser and you set your username and then change it... its supposed to say
Code:
NAME has logged out
but for some reason if you change your name more than once during that session it prints the welcome message +1. You'd have to see it for your self. Please help me out. the url is http://www.slappyjaw.com/chat. enter your username and then change your username a few times you'll see what i mean. Im stuped so far. its as if the ajax request is being sent +1 one each time you change your username or logout. Thanks in advance.