my dog learned polymorphism*
The moose likes Servlets and the fly likes jsessionid and searchbots Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsessionid and searchbots" Watch "jsessionid and searchbots" New topic
Author

jsessionid and searchbots

christoph weingarten
Ranch Hand

Joined: Oct 10, 2002
Posts: 39
hello,
i have some problems with google and my dynamic websides written in java.
all links on these pages are dynamic. that means, that they are equipped with a jsessionid.
and this sessionid seems to be the source of my problem.
the googlebot can't handle it and all links containing this id,
will be ranked wrong or completly ignored by the spider.
what can i do to make google using these links correctly?
please help!
christoph
[ December 04, 2003: Message edited by: christoph weingarten ]
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
I'm puzzled as to why you need an active session on a page which you wish to be indexed by google. This is generally not a good idea, and google often refuses to cache and search such pages because it (rightly) assumes that the information on the page is likely to be different next time someone looks at it.
Try to see if you can divide your site into pages you wish to be cached and searched by google, and pages which are sufficiently dynamic that caching them makes no sense. Then eliminate the session id from the "static" pages. You can then add a "robots.txt" file to your site to indicate to search engines which directories or pages are suitable for indexing.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
christoph weingarten
Ranch Hand

Joined: Oct 10, 2002
Posts: 39
thanks for your reply.
the user can use the side either with or without personalised stuff in it. he can login almost everywhere and in this case he will see additional data on the screen. thats the reason for the active session.
if i understand you right here, it's some kind of conceptual problem of my side. your argument regarding the changing informations on personalised sides is quite right.
I have to review...
thanks
christoph
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jsessionid and searchbots
 
Similar Threads
Generating a new session id for a user
Strange behaviour with Struts html links
Width and Height
reading SESSIONID header.
URL rewriting issue