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
Author

Doubt on cookies

Gokula Kanna
Greenhorn

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

Thanks
Sriram
chandrayaan
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

ABC.com will only be sent the cookies for ABC.com
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
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
For the complete cookie rules, do a search for "rfc2965"
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doubt on cookies
 
Similar Threads
URL Masking
Regex pattern
cookies
URL Masking
URLConnection class