Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Strip jsessionid in Tomcat

843838Nov 14 2005 — edited Sep 17 2008
Tomcat appends the jsessionid parameter to a URL if the client does not support cookies. Unfortunately, some search engines like Yahoo cant deal with that. All the spidered URL's will include the jsessionid parameter. Is there a way to instruct Tomcat not to append this parameter or use some kind of Filter for URL rewriting that will strip the jsessionid parameter? To my knowledge, if a page is requested and the URL contains the jsessionid parameter, all the links in the page will contain this parameter too. So if I "catch" the request, strip the jsessionid and do some request dispatching with the proper URL, it should do the job, right?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2008
Added on Nov 14 2005
6 comments
916 views