id session create and client send logic add