Implemented the Session ID getting.