File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Sessions and SEO" Watch "Java Sessions and SEO" New topic
Author

Java Sessions and SEO

Kevin Parkings
Greenhorn

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!!

Regards

Kev
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
Greenhorn

Joined: Mar 11, 2005
Posts: 2
Thanks,

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

Kev

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Sessions and SEO
 
Similar Threads
jsessionid and searchbots
Servlets-4b cookie question
URLConnection class
HttpSession when cookies are disabled
Session Tracking with HttpSession