Archive of UserLand's first discussion group, started October 5, 1998.
Re: Tricky Problem!
Author: William Crim Posted: 11/23/1998; 4:49:28 PM Topic: First message Msg #: 417 (In response to 415) Prev/Next: 416 / 418
Then I think you can.Leeme recap and see if I got it.
You want the cookie to be for userland.com, not just for nirvana.userland.com or discuss.userland.com.
If that is the case, then this is from Netscape's developer's homepage about cookies.
=====
A CGI program uses the following syntax to add cookie information to the HTTP header:
Set-Cookie: name=value [;EXPIRES=dateValue] [;DOMAIN=domainName] [;PATH=pathName] [;SECURE]
[snip- clipped some mundane stuff]
DOMAIN=domainName specifies the domain attributes for a valid cookie. See "Determining a Valid Cookie". If you do not specify a value for domainName, Navigator uses the host name of the server which generated the cookie response.
[snip- Here is the text of "Determining a Valid Cookie"]
Determining a Valid Cookie
When searching the cookie list for valid cookies, a comparison of the domain attributes of the cookie is made with the domain name of the host from which the URL is retrieved.
If the domain attribute matches the end of the fully qualified domain name of the host, then path matching is performed to determine if the cookie should be sent. For example, a domain attribute of royalairways.com matches hostnames anvil.royalairways.com and ship.crate.royalairways.com.
Only hosts within the specified domain can set a cookie for a domain. In addition, domain names must use at least two or three periods. Any domain in the COM, EDU, NET, ORG, GOV, MIL, and INT categories requires only two periods; all other domains require at least three periods.
==============
I am not sure if this is what you are looking for. Hope it helps. The URL of the whole file is http://developer1.netscape.com:80/docs/manuals/communicator/jsguide4/cookies.htm
There are responses to this message:
- Re: Tricky Problem!, Dave Winer, 11/23/1998; 5:33:35 PM
This page was archived on 6/13/2001; 4:45:53 PM.
© Copyright 1998-2001 UserLand Software, Inc.