Re: sending http requests without cookies
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Tue, 14 Feb 2006 23:24:41 +0100
VK wrote:
Michael Winter wrote:
On 14/02/2006 19:00, VK wrote:
Thomas 'PointedEars' Lahn wrote:Not possible.
VK wrote:What do you mean "impossible"?
2) Parse cookie string "foo", extract each separate cookie andAs I said, step 2 is not possible. Once in a while you should read
make it expired [...]
what you reply to.
How do you think all JavaScript cookie management systems work?Thomas clearly has a greater understanding than you do, but that is
hardly a surprise, is it?
Not really - specially as I'm getting more and more hard to be
surprised recently :-)
Thomas doesn't have better understanding, but he's already getting what
attitude (atop of his regular one :-) which may infect you if stay
regularly on clj.
[...]
What are you babbling about again? Read it from my fingertips: It is _not
possible_ to delete all cookies that apply to a resource because either of
the cookies retrieved with document.cookies may be set for a domain of the
resource of a higher level (say a resource on bla.example.com reading the
cookie set for .example.com) or a path of a higher level (say a resource on
example.com/foo/bar/ to retrieve a cookie set for example.com/foo/) or a
combination of both. Then you have _no chance_ to set this cookie to
expire (read: to delete it) as you have no chance to retrieve that kind of
information and so you cannot set the exact domain or path component of the
string that needs to be assigned. And using the second-level domain of the
resource or the root path does not modify the corresponding cookie, so
cannot delete it.
Now reading OP's original question once over: "Any cookies that I have
associated with that site will be sent along with this HTTP request".
*I have associated*
A Web site usually consists of more than one resource.
From my (possibly wrong) reading of this sentence I concluded that OP
knows what cookies, for what domain and what path did he set.
Perhaps, perhaps not. For example, session cookies ("session" referring
to server-side sessions here, not necessarily also to client-side ones),
are often set/sent automatically by server-side applications.
name/domain/path exact match was implemented for exactly the opposite
situation: when someone wants to destroy cookie set by someone else.
Utter nonsense. It was implemented to allow cookies to be accessible
throughout a Web site, especially sub-level domains and subpaths, and
accessible in a sub-level domain (and its sub-level domains) and subpaths
but not in the domain or path of higher level.
PointedEars
.
- References:
- sending http requests without cookies
- From: yawnmoth
- Re: sending http requests without cookies
- From: VK
- Re: sending http requests without cookies
- From: Thomas 'PointedEars' Lahn
- Re: sending http requests without cookies
- From: VK
- Re: sending http requests without cookies
- From: Thomas 'PointedEars' Lahn
- Re: sending http requests without cookies
- From: VK
- Re: sending http requests without cookies
- From: Michael Winter
- Re: sending http requests without cookies
- From: VK
- sending http requests without cookies
- Prev by Date: setting textarea with special characters - won't render them
- Next by Date: Re: Form Field Validation Question
- Previous by thread: Re: sending http requests without cookies
- Next by thread: Re: sending http requests without cookies
- Index(es):
Relevant Pages
|