File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "regarding cookies" Watch "regarding cookies" New topic
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 39537
    
  27
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)?


Ping & DNS - updated with new look and Ping home screen widget
Gangadhar Reddy
Greenhorn

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: http://aspose.com/file-tools
 
subject: regarding cookies
 
Similar Threads
Finding all cookies
cookies
Error Handling in Servlets
Session Question
how to disable cokies in browser