Hi, i have a js av messenger and i think what might be happening is that the member logs off but does not close the window. And i think what happens is that the messenger might still be looking for that feed data while the window is still open so once the member logs out it cant get the data because there is no db connection.
Whats going on is that im getting a cant connect to db repeatedly late at night from the messenger in my error log. So i think thats whats happening they are not closing the messenger window when they log out.
I was not sure if this was a php or js question but i think its a bit of both. So let me ask this,
This is not valid coding just trying to wrap my brain around the logic here.
if i put something like: