I need to set cookie in domain 1 and get cookie value in domain2
I tried using jquerycookie.js
In 2nd page i set cookie like
$.cookie('url', window.location.href);
and in first page i get cookie like
<script> function checkUrl() {alert($.cookie('url'));}<script/>
but it returned undefined