Google Answers Logo
View Question
 
Q: Removing Session IDs from URLs that are included in Outputted HTML ( No Answer,   0 Comments )
Question  
Subject: Removing Session IDs from URLs that are included in Outputted HTML
Category: Computers > Internet
Asked by: freezingcode-ga
List Price: $50.00
Posted: 18 Mar 2005 08:46 PST
Expires: 28 Mar 2005 13:58 PST
Question ID: 496753
I use Tomcat as my web server. My research has revealed that it will
first attempt to store a session id in a cookie. If it can't, it will
embed the session id in the URL. I've also read that I can disable
session support entirely and that I can force sessions to be inserted
in the URL always.

Here's an example of the jsessionid parameter that gets added to the
URL when cookies aren't supported:

;jsessionid=8012F0AA1B354924E2D04221EA7711C1.app2_fa2

I understand that for URL requests that include the jsessionid in
them, I can strip out the session ID using mod_rewrite. But
mod_rewrite doesn't solve the problem of the jsessionid being added to
all the URLs in the resulting HTML page that is sent out to the user
(or search engine).

My concern is that these URLs will look like unique URLs to the search
engines and therefore they'll continue to follow links to pages that
have already been recently indexed. Google seems to be dealing with
this issue automatically by removing the jsessionid, but Yahoo has
hundreds of my site's URLs all pointing to the same page because the
session ID makes the URL look unique.

How do I prevent the jsessionid from being added to URLs, while still
supporting sessions in cookies, without modifying and recompiling the
Tomcat source code?
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy