Problems re-joining rooms

Hi everyone i’m working with chat rooms and I have some questions…

First of all thanks!!

The question is:

I don’t know how to get all the rooms that a user is member when a user log out and then log again.

Thanks again!!!

can anybody help me?

can anybody help me?