logged session into file