Saving session for deamon mode