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

Java Sessions and SEO

Kevin Parkings

Joined: Mar 11, 2005
Posts: 2
Hi All,

I am having trouble getting Google to list the dynamic pages on my site. Im aware of the problems of using dynamic pages with regards to stop characters but Google is supposed (and does) list dynamic pages with a limited amount of these characters.

I have read that search engines cant work with cookies, so I was wandering if the real problem is not that google wont index my pages becuase they are using dynamic url's but instead that the spider encounters an exception because the pages use java session objects (which use cookies under the bonnet).

I have turned off cookies in the browser, and sure enough the browser throws an exception.

Can anyone tell me, am I on the right track here? And if I am is there a way round this or do I just need to revert back to url rewriting?

Any help greatly appreciated!!


Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
Yeah, I'm guessing the spider isn't going to go there if they don't use cookies. I don't know much about what the spiders do or don't do, but they *could* use cookies if their programmers wanted them to (they could just start using the Apache Commons HttpClient or write that stuff themselves). However, if they don't bother, then I don't see how they're going to get around your site.
Kevin Parkings

Joined: Mar 11, 2005
Posts: 2

I've been speaking to one of my collegues and apparently if I use encodeRedirectURL(String url) this will sort out the problem by replacing cookies with url rewriting where cookies are disabled.

Gona give it a try and see how it goes over the weekend


I agree. Here's the link:
subject: Java Sessions and SEO
It's not a secret anymore!