Generate unique ide for session.