This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes cookies= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "cookies="false" doesn Watch "cookies="false" doesn New topic

cookies="false" doesn't work in all cases

Roman Tomachinsky

Joined: Apr 24, 2006
Posts: 12

Please suggest me, how to force use URL encoding. It seems that Tomcat has a bug with context parameter "cookies". It works only if cookies are disabled on the client side.
So, I have strange behaviour - if cookies = false and browser accepts cookies, then Tomcat doesn't use cookies for session tracking, but doesn't encode URLs as well. When I disable cookies in the browser - all is OK, Tomcat starts URL encoding.
I think this is incorrect. If I use cookies="false" then Tomcat must not use cookies regardless client settings.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

"Roman T.",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
Roman Tomachinsky

Joined: Apr 24, 2006
Posts: 12
Thank you. I've updated display name.
I agree. Here's the link:
subject: cookies="false" doesn't work in all cases
It's not a secret anymore!