This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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: 12759
For the complete cookie rules, do a search for "rfc2965"
It is sorta covered in the JavaRanch Style Guide.
subject: Doubt on cookies
Similar Threads
URL Masking
Regex pattern
URL Masking
URLConnection class