Strip jsessionid in Tomcat
843838Nov 14 2005 — edited Sep 17 2008Tomcat 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?