File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Doubt on cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Doubt on cookies" Watch "Doubt on cookies" New topic

Doubt on cookies

Gokula Kanna

Joined: Nov 02, 2008
Posts: 1
I have a question regarding cookies. Assume, a browser receives some cookies from So, is it possible that can read all cookies associated with browser (machine)? Or, it can read only the cookies that belong to it?

David O'Meara

Joined: Mar 06, 2001
Posts: 13459 will only be sent the cookies for
Also, if the cookie includes path information, such as /forum, it will only be sent to that context.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
For the complete cookie rules, do a search for "rfc2965"
I agree. Here's the link:
subject: Doubt on cookies
It's not a secret anymore!