This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to avoid JSESSIONID display browser querystring

 
ponvin krishna
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

http://HostName/AppContext/home.do;jsessionid=56FA082595546D3F49A5F42ACB48A1EB.JbossCluster1

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

Please someone help me.

Regards
Pon
 
Esteban Puertas
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is your browser allowing cookies? It seems like the server is using url rewriting...
 
Rajesh Chande
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Any body got any solution on this issue?

I am facing the same issue.

Regards,
Rajesh.
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic