Cookies

D

Dammit

When doing a http request with code I derived from the example from
http://www.developerfusion.com/show/4498/3 I noticed that my cookies would
only be sent if the name of the page was the same as the name of the page
that set them, but I need the cookies to be sent on every page I request
from the same domain. So is there a way to add all the cookies from a
certain domain to your request ?
 
C

clintonG

Its not the name of the page but the domain where the page exists and the
behavior is by design. The domain attribute of the cookie is optional but
learning to use it or not use it is best learned by reading the
documentation.

That documentation is going to take some time to find because A(ssholes)
O(n) L(ine) shut down DevEdge via developer.netscape.com but finding a copy
of Netscape's JavaScript documentation is well worth the effort and a must
if you hope to learn all of the requirements to set and get cookies --
especially if persistence is required.

You want to find "Client-Side JavaScript Guide v1.3"
You may be able to find it and download a copy from the Internet Archives
[1].

--
<%= Clinton Gallagher
METROmilwaukee "Regional Information Services"
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

[1] http://web.archive.org/web/*/http://developer.netscape.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top