This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 13018
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!