Forum Moderators: DixonJones

Message Too Old, No Replies

Change cookie name

Is it possible request cookie information from another domain

         

heini_dutch

3:38 pm on May 15, 2002 (gmt 0)



Hi,
I've got a problem reading cookies. Please take a look at this example:
I use different domains like
www.adomain.com as doorway pages, there is no actual content on the doorway pages, only the domainname is visible in the location bar. The
actual content and contactpage is always loaded from www.contentdomain.com. I use a simple frameset for this doorway.

The cookie is only written by the doorway page, the actual content page cannot write the cookie, because it's loaded in frames. The request for cookie information happens on the contentdomain's contactpage, but I cannot read any information because there's no cookie on that domain....

Maybe it's quite a different case, but maybe somebody has got an idea to solve this...

m77_lv

9:40 am on May 17, 2002 (gmt 0)

10+ Year Member



if when u create cookie u don't specify path then cookie associates only with dir of file where cookie was created. to make cookie visible at all dirs of domain set attribute path="\"

JavaScript sample:

<SCRIPT LANGUAGE="JavaScript">
document.cookie="foo=bar; path=/; expires=Mon, 01-Jan-2001 00:00:00 GMT";
</SCRIPT>