I have a site where i have built a chatroom using Ajax. I query a mysql database where i store the messages. I then purge messages that are older than a week. each day.
my question is, I want to dynamically be able to use mutliple channels. so far the way i've done it is parsed the message and i was using session variable to store which channel i'm on. the strange part is that when i type a message in the second channel when ajax rolls it is switching me back to the first channel regardless of what my variables say. i've gone thru the 3 spots where this could be effected and I cannot find any reason for it to reset.
does anyone know of a better way to do this?