Implement getCookie function
Make XdmView and call XDM API