This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Servlets and the fly likes Testing URL encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Testing URL encoding" Watch "Testing URL encoding" New topic

Testing URL encoding

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
I am testing URL encoding feature and want to disable cookie in my browser. However, it seems that IE6 doesn't disable the cookie even if I've changed the setting. I tried both ways but it seems that IE still returning the JSESSIONID cookie back:

1) Tool->Option->Privacy->slide up the bar to highest level (to block all cookies)

2) Tool->Option->Privacy->Advanced->click O,B,L, uncheck W
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

There is a separate checkbox in MSIE (under the privacy -> advanced section) for dealing with session cookies.
Make sure it's unchecked.

By the way, what does this question have to do with URL Re-Writing?

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
Yes, I've unchecked it (W). And, if we do not disable cookie, tomcat 5 will use cookie as session management and stop doing URL rewriting after the first attempt - so response.encodeURL("url") has no effect on the url.
I agree. Here's the link:
subject: Testing URL encoding
It's not a secret anymore!