This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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: 13025
For the complete cookie rules, do a search for "rfc2965"
Consider Paul's rocket mass heater.
subject: Doubt on cookies
It's not a secret anymore!