Client side of establish-session protocol