File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Avoid jSessionid in Google search result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Avoid jSessionid in Google search result" Watch "Avoid jSessionid in Google search result" New topic

Avoid jSessionid in Google search result

Hieu Tran

Joined: May 28, 2013
Posts: 1
I am working on JSF and RichFaces with jBoss server. I want to avoid the jSession id added to the link on Google search.

I tried some solutions but not yet positive result:

- Adjusting the parameter handling on Google Webmaster Tools

- Creating a filter (1 java class and adding new filter on web.xml) to affect Google bot requests

Do you have any comment?

Note that the application needs the session id for browsers that don't accept cookies. Here I need a solution for Google to avoid show the id.

Thank you guys very much for any suggestion!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

Welcome to the JavaRanch, Hieu!

I am not a SEO expert. Actually, I would hope that Google would remove the jSessionID value as part of its normal indexing function, since almost never is it going to be useful to have some stale old session identifier applied to a later access by some other person on the other side of the planet.

You might want to add some meta-information to the JSF views to make these session-related pages not indexable by Google. Then put "bookmarkable" links on your home page where Google is more likely to rate them higher. If you have problems with jsessionid appendages on those links, do brute-force raw HTML links without the JSF URL rewriting.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Avoid jSessionid in Google search result
It's not a secret anymore!