0

I have developed a web application with session management in Struts2. Every time user logins, jsessionid appeared in the URL. How to remove disable jessionid in appending in URL? I am using Struts 2.0.11.

Aleksandr M
  • 24,264
  • 12
  • 69
  • 143
JR Galia
  • 17,229
  • 19
  • 92
  • 144

1 Answers1

1

You could disable url rewriting on your container level (and in fact it works for every framework leveraging the HttpServletResponse#encodeURL method).. In servlet 2.5 url rewriting is optional and on most servlet containers there should be a way to disable this. For instance in Tomcat you can set disableURLRewriting attribute to true. More here. Also check out this question - it seems to be similar.

Community
  • 1
  • 1
hakyer
  • 454
  • 2
  • 7