wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes How to avoid JSESSIONID display browser querystring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to avoid JSESSIONID display browser querystring" Watch "How to avoid JSESSIONID display browser querystring" New topic

How to avoid JSESSIONID display browser querystring

ponvin krishna

Joined: Apr 18, 2008
Posts: 1

I have two JBoss servers clusted using ModJK and the application I have developed using struts framework. I am accessing the application from Apache web server.

When I access the application home page on the borwser address bar I am seeing the JSESSIONID as


How can I restrict ";jsessionid=56FA082595546D3F49A5F42ACB48A1EB.JbossCluster1" being displayed in browser as part of Query String.

Please someone help me.

Esteban Puertas

Joined: Mar 23, 2008
Posts: 22
Is your browser allowing cookies? It seems like the server is using url rewriting...
Rajesh Chande

Joined: Apr 20, 2004
Posts: 8

Any body got any solution on this issue?

I am facing the same issue.

Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Cut-and-paste from http://www.mail-archive.com/user@struts.apache.org/msg50246.html

The "jsessionid" attribute is put when cookies are not enabled on the browser, or when there wasn't time to set one. For example if your home JSP page has a <html:link>, the Struts tag will rewrite the URL appending the "jsessionid" attribute, because it did not find any cookie.

Regards, Rene Larsen
Dropbox Invite
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to avoid JSESSIONID display browser querystring