469,290 Members | 1,838 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

Cookies to another web site

Hi. Got a client with three web sites. I want to be able to pass
cookies between these sites, so far no luck. Tried:

document.cookie = name + "=" + escape (value) +
((exp == null) ? "" : ("; expires=" + exp.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
("; domain=.yorktest.com") +
((secure == true) ? "; secure" : "");

....with domain=www.yorktest.com and domain=http://yorktest.com. Still
don't see a cookie file in my adiministrator->cookies folder. I can
create a cookie txt file for the current domain, why not another? Any
help would be greatly appreciated...Dennis
Oct 25 '05 #1
1 1191
> Got a client with three web sites. Tried:
...
("; domain=.yorktest.com") +
...
...with domain=www.yorktest.com and domain=http://yorktest.com. Still
don't see a cookie file in my adiministrator->cookies folder.


According to the cookie RFC this should work. Have you tried this in
multiple browsers (from different vendors)? It may just be a problem
with the browser you are using, or some cookie-blocking software you
have installed.

Also, if your test cookie is a session cookie... most browsers (to the
best of my knowledge) keep session cookies in memory and never write
them to the cookie jar. You may just need to set an exp date on the
cookie.

Hope this helps.

Oct 26 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Martin Heuckeroth | last post: by
16 posts views Thread by Cheung, Jeffrey Jing-Yen | last post: by
1 post views Thread by amitprasad.one | last post: by
reply views Thread by Anbu | last post: by
12 posts views Thread by Patxi | last post: by
8 posts views Thread by Chuck Anderson | last post: by
1 post views Thread by Sanjib Biswas | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.