wood burning stoves 2.0*
The moose likes Servlets and the fly likes Cookies being read even after deleting 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 "Cookies being read even after deleting" Watch "Cookies being read even after deleting" New topic
Author

Cookies being read even after deleting

Abhishek Asthana
Ranch Hand

Joined: Sep 08, 2004
Posts: 146
I am confused about this cookie issue.
In Internet Explorer, I have deleted all the cookies by (help->Internet Options->Delete Browing History) before I run my servlet:



When I debug the code, I find that cookies array has 3 elements when there should be none. 2 of these are the cookies i created in this program earlier by following code:

What is the reason that those cookies are still being read?
Thanks
abhishek pendkay
Ranch Hand

Joined: Jan 01, 2007
Posts: 184
I doubt wether (help->Internet Options->Delete Browing History) will delete the cookies... there is seprate Delete Cookies option in Tools->Internet Options try that , that should delete all the cookies..
[ April 19, 2008: Message edited by: abhishek pendkay ]

The significant problems we face cannot be solved by the same level of thinking which created them – Einstein
SCJP 1.5, SCWCD, SCBCD in the making
Kristipati Raghuram
Greenhorn

Joined: Apr 19, 2008
Posts: 3
Hi

In Internet Options -> Browsing History -> Delete ->Delete Cookies options will help to delete the cookies.
Abhishek Asthana
Ranch Hand

Joined: Sep 08, 2004
Posts: 146

While writing this problem I really thought whether I should specify that I select 'Delete Cookies' option.
Yes I choose the write option to delete cookies.
Thanks.
 
 
subject: Cookies being read even after deleting
 
Similar Threads
Cookie
Cookies in Struts not updated in the first time
Tomcat refusing to set a cookie...
HFSJ Final mock Q
Using a method to retrieve a cookie