make relation by handshake use cookie