• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Disable Session Id

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a stateless application with read only data deployed on a Tomcat server behind Apache frontend.

When I hit the url, a jsessionid gets appended to the URL. I want to disable this.

Any pointers?

TIA
Chris
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

When I hit the url, a jsessionid gets appended to the URL.



Do you mean that the HTML where a link appears has a sessionid in the url or that Apache is appending a session id when it forwards to Tomcat?

Bill
 
Christina Shah
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat appends the jsessionid ( browser session I believe ) to the URL. It happens irrespective of whether there is a apache in front or not. Something like

http://<backend_tomcat:8080>/<path>;jsessionid=SHEO13NFK......
OR

https://<apache_frontend>/<path>;jsessionid=SHEO13NFK......

Thanks
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tomcat appends the jsessionid ( browser session I believe ) to the URL



Tomcat is not doing this automatically - somewhere in the application there is probably code that calls the method:

String HttpServletResponse.encodeURL(string)

(This is typically done to support browsers that have cookies turned off)
Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic