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
  • 588,226
  • 146
  • 1,060
  • 1,140
Lalchand
  • 7,627
  • 26
  • 67
  • 79

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
  • 588,226
  • 146
  • 1,060
  • 1,140
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
  • 87,898
  • 29
  • 167
  • 228