The moose likes Java in General and the fly likes regarding cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "regarding cookies" Watch "regarding cookies" New topic

regarding cookies

Kranthi Kondapaka
Ranch Hand

Joined: Sep 17, 2007
Posts: 31
hi everyone

I am unable to achieve cookie management in internet explorer where as i am able to manage this in mozilla...

can any one provide me the cookies code to store my userid and password in my login page(for internet explorer)
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The server-side code is the same regardless of the client. That's the benefit of using standardized protocols like HTTP.

What does "unable to achieve cookie management in IE" mean? Is the cookie being sent by the server (and by that I mean "have you observed it in transit using an HTTP or TCP/IP sniffer", not "did the server-side code to set the cookie run")? Are any of the IE options set that would prevent the cookie from being accepted? Does IE send the cookie with the next HTTP request (again, did you observe that IE does or does not do so)?
Gangadhar Reddy

Joined: Aug 13, 2007
Posts: 25
Hello Ulf,
Even I had faced same situation with IE. Here is the complete description.

If you disable cookies in your IE, and tried to access application FROM LOCALHOST, such as, http://localhost:8080/xxxx then you will get results which are same as that of enabling cookies.

The reason is very simple, IE will consider users request to diable cookies ONLY if the request comes from, out side of the current system or N/W i.e, OUT OF LOCALHOST. So, any request that comes to IE from localhost will not have any impact whether cookies are enables or diabled. IE will consider users request to diable cookies only if the request comes from NON LOCALHOST

Where as mozilla is not as such. If you disable cookies at mozilla, then it wont allow even Localhost to store the cookies. That is how mozilla behaves.
I agree. Here's the link:
subject: regarding cookies
It's not a secret anymore!