Meaningless Drivel is fun!*
The moose likes JForum and the fly likes is it possible to remove the jsessionid in url when cookie are not available? 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 » Products » JForum
Bookmark "is it possible to remove the jsessionid in url when cookie are not available?" Watch "is it possible to remove the jsessionid in url when cookie are not available?" New topic
Author

is it possible to remove the jsessionid in url when cookie are not available?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Not sure what you mean by "set up jforum like this one"... If I disable cookies for this site, I start getting the jsessionid parameter added to the URLs. It seems to be behaving exactly like you described in the initial post.

IMHO, given that there is a large set of web applications that require session cookies to behave correctly. I'd say that this isn't a jForum issue, but rather an issue with the web spider software you're having the problems with. This software would fail to work with a lot of PhP, .Net, and other applications and not just jForum. Perhaps you need to take this up with the spider software people.

FWIW: Google, Yahoo, and MSN have no problems with searching this site using session cookies because I can find some of my postings on them and the URLs have no session parameters.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi Guy,
I noticed that when an user doesn't accept cookie, like a search engine spider for example, jforum attach the jsessionid in the urls, lihe this example:

with cookie:
http://www.jforum.net/forums/show/9.page

without cookie:
http://www.jforum.net/forums/show/9.page;jsessionid=FA479830A5475C079205C8E37793BF42

thats a really big problem to be indexed in search engine.

So I would like to know if it is possible to remove it when cookie are disabled or not available

Thank you
F.
[originally posted on jforum.net by k3k]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
You had problems with jsessionid's indexed by google or any other engine? I never saw that.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Rafael Steil wrote:You had problems with jsessionid's indexed by google or any other engine? I never saw that.

Rafael


Hi Rafael,
I noticed that if I disable cookie (with web developer toolbar in FF for example) and I browse this forum the jsessionid param is attached in the URL.

I also Noticed that if I use the "Google bot" as User agent this problem disappear (so, as you said, this forum doesn't have problem with google) (how can I do this?)

I would like to know if there is a way to remove this param from the ULR in any case.

thanks for yuor answer
F.
[originally posted on jforum.net by k3k]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
AFAIK, it's not possible. You either have to support temporary session cookies (like Google Bot obviously does) or the session id parameter.

This is because, like most complex web app engines (including non-Java ones), you need to be able to associate the request with a particular session. Even in the case of anonymous access, the request is associated with an anonymous user session.

Can your search engine be set up to ignore all parameters on URLs? e.g. anything after the ?.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
ok,
I would like to know how is it possible to set up jforum like this one.

so that if I browse this forum without the cookie and I have "googlebot" as user agent, the urls are perfeclty clear (without the jsessionid) (like this forum)


thank you
F.


[originally posted on jforum.net by k3k]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
monroe wrote:Not sure what you mean by "set up jforum like this one"... If I disable cookies for this site, I start getting the jsessionid parameter added to the URLs. It seems to be behaving exactly like you described in the initial post.


yes, exactly.
But, if you also use the firefox extension "User Agent Switcher" and you set your user agent like Goglebot2.1
"(Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
you will see that the jsessionid parameter disappears.
Thisi is regular cloaking, and I would like to know how to do it with jforum
(you have to simulate google spider, so no cookie and google user agent)


monroe wrote:FWIW: Google, Yahoo, and MSN have no problems with searching this site using session cookies because I can find some of my postings on them and the URLs have no session parameters.


They have no problem because they don't view the jsessionid parameter, but not all jforum handle the problem in the same way.

thank you
F.


[originally posted on jforum.net by k3k]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it possible to remove the jsessionid in url when cookie are not available?
 
Similar Threads
Show what happen
Ranking by user group and by posts
HttpClient - Cookies
Internationalization
Internationalization