Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

disable jsession id

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I have an application which is in jsp and sevlets and i deployed in tomcat. it is working fone. I am re-writing the same application using struts and hibernate. in eclipse i have used tomcat and am trying to develop the struts version. problem here is in the previous application of jsp and servlets there was never a jsessionid dispalyed in the url. but in the struts version which I am still working on is showing jsessionid in the url. can anyone tell me what's the reason for this. Is there any specific configuration or setting that is making to display jsessionid ?
Ranch Hand
Posts: 247
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In general, when session is created by the container, server sends the JSESSIONID cookie to the Client... In turn, Client will send the JSESSIONID cookie in the subsequent requests with which container correctly returns the session belonging to corresponding JSESSIONID.

When Cookies are not accepted by the Client Browser, URL Re-Writing is done that is JSESSIONID is encoded in the URL itself so that it is explicit in the URL... I dont know about Struts... What is suppose is Struts use URL Rewriting technique for fetching the session corresponding to the ID...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic