setting sessions in chatController