allow setting cookie using handshakeData object