Du behøver ikke sætte stjerne alias i din dns.
hvis alle dine domæner er subdomæner på det samme hoved
eg
phorum.dk
alfa.phorum.dk
beta.phorum.dk
kan du på dine sider sætte variablen
document.domain = \'phorum.dk\';
og så skulle det være ok for den side at kikke på din \'phorum.dk\' cookie.
Nedenstående er fra Netscape manualen. Jeg håber det også gælder for IE:
domain
Specifies the domain name of the server that served a document.
Property of
document
Implemented in
JavaScript 1.1
Security
JavaScript 1.1. This property is tainted by default. For information on data tainting, see the Client-Side JavaScript Guide.
Description
JavaScript 1.1. The domain property lets scripts on multiple servers share properties when data tainting is not enabled. With
tainting disabled, a script running in one window can read properties of another window only if both windows come from the
same Web server. But large Web sites with multiple servers might need to share properties among servers. For example, a
script on the host
www.royalairways.com might need to share properties with a script on the host
search.royalairways.com.
If scripts on two different servers change their domain property so that both scripts have the same domain name, both scripts
can share properties. For example, a script loaded from search.royalairways.com could set its domain property to
\"royalairways.com\". A script from
www.royalairways.com running in another window could also set its domain
property to \"royalairways.com\". Then, since both scripts have the domain \"royalairways.com\", these two scripts can
share properties, even though they did not originate from the same server.
You can change domain only in a restricted way. Initially, domain contains the hostname of the Web server from which the
document was loaded. You can set domain only to a domain suffix of itself. For example, a script from
search.royalairways.com can\'t set its domain property to \"search.royalairways\". And a script from
IWantYourMoney.com cannot set its domain to \"royalairways.com\".
Once you change the domain property, you cannot change it back to its original value. For example, if you change domain
from \"search.royalairways.com\" to \"royalairways.com\", you cannot reset it to \"search.royalairways.com\".
Examples
The following statement changes the domain property to \"braveNewWorld.com\". This statement is valid only if
\"braveNewWorld.com\" is a suffix of the current domain, such as \"
www.braveNewWorld.com\".document.domain=\"braveNewWorld.com\"
men selvom det måske virker er det ikke en garanti for at en php-session kan holde sig ilive henover. sessioncheck sker vist før siden har haft lejlighed til at ændre domain indhold.
mvh JakobA