"A User" <md RemoveThis @universal.net> schreef in bericht
news:bjJzc.400$Ny6.1215@mencken.net.nih.gov...
> HansH wrote:
> Thanks. It turns out that the domain I used, from truncating the part
> before the first ., is not working as the domain of the web server. I
> removed the domain field in the set-cookie, and it worked fine.
>
> Now, how do you determine a domain then?
IOW have your cookie returned to any server in the domain 'foo.bar' use
'Set_cookie: ... domain=.foo.bar ...'
<a style='text-decoration: underline;' href="http://ietf.org/rfc/rfc2109.txt?number=2109" target="_blank">http://ietf.org/rfc/rfc2109.txt?number=2109</a>
4.2.2 Set-Cookie Syntax
" Domain=domain
Optional. The Domain attribute specifies the domain for which the
cookie is valid. An explicitly specified domain must always start
with a dot.
You hardly ever have to worry about this, most script-engines use
'server.foo.bar' by default.
Hans<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: How to enable cookie in the server