2

i need to disable or remove the Jsessionid in the URL how to do that, whether it causes any side effect during ajax request.I am using struts 1.2 version.

Bozho
  • 572,413
  • 138
  • 1,043
  • 1,132
Lalchand
  • 7,377
  • 25
  • 65
  • 78

2 Answers2

2

Servlet 3.0 allows you to specify the means of maintaining a session.

I guess you are not using it, so see this question. I favour the 2nd answer more than the rewrite.

Community
  • 1
  • 1
Bozho
  • 572,413
  • 138
  • 1,043
  • 1,132
0

If you remove JSESSIONID from your ajax call, your servlet container won't identify your application and the resources stored in the session, (which is a side-effect, depending on your requirement).

E.g. retrieving a list of protected resources (that requires authorization). If the user had logged in (and user info is logged in a session), and Ajax doesn't pass the JSESSIONID, there's no way to verify user who logged in (as there is no application session). So, no protected resources is retrieved.

Just a 2cent thought.

Buhake Sindi
  • 85,564
  • 27
  • 164
  • 223