A
alberthung01
Hi all,
I wrote the code below in client script block,
but I couldn't retrieve the cookie which was set in line 1.
Server1
processCookies.htm
url->http://Server1/mainSite/processCookies.aspx
------------------
document.cookie="myName=Test;domain=Server1";
alert(document.cookie);
------------------
My purpose is to share cookies between two or more web servers in my
LAN.
So if it works,I will change the domain value to Server2,
Server3...etc. in the main site processCookies page.
And then when users link to other site the cookie will also available.
Whether domain doesn't accept this kind format?
Thanks,
Albert
I wrote the code below in client script block,
but I couldn't retrieve the cookie which was set in line 1.
Server1
processCookies.htm
url->http://Server1/mainSite/processCookies.aspx
------------------
document.cookie="myName=Test;domain=Server1";
alert(document.cookie);
------------------
My purpose is to share cookies between two or more web servers in my
LAN.
So if it works,I will change the domain value to Server2,
Server3...etc. in the main site processCookies page.
And then when users link to other site the cookie will also available.
Whether domain doesn't accept this kind format?
Thanks,
Albert