cancel
Showing results for 
Search instead for 
Did you mean: 

Delete JSESSIONID from URL

chintan_virani
Active Contributor
0 Kudos

Hi,

I have created a web based application which uses FORM based authentcation. The application is developed in NWDS 2.0.16.

When I deploy the application and access it in IE there are two parameters JSESSIONID and SAPLB which get appended to existing URL.

I have set the context root of the application as myapp so for eg If i type in browser the following URL --> http://server:port/myapp and press go the application is loaded and the URL becomes something like this --> http://server:port/myapp/my.jsp;jsessionid=(J2EEXXXX)XXXXXXXEnd;saplb_*=XXXXXX

I have tried an alternative by setting <i><url-session-tracking/></i> in web-j2ee-engine.xml file but still the JSESSIONID gets appended in the URL.

Is there any way by which this JSESSIONID can be avoided in the URL as the problem is that if user adds the URL in Browser Favorites and then tries accessing the application it throws an error.

<b>- Chintan</b>

Accepted Solutions (1)

Accepted Solutions (1)

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Chintan,

the session Id is essential, as otherwise your application won't find back to the process it was started in.

Regards,

Benny

chintan_virani
Active Contributor
0 Kudos

Benny,

In that case you mean there is no way programatically to disable it. In case if you check my previos post you would come to know as to why I want to disable the JSESSION Id appearing in the URL.

<b>- Chintan</b>

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Chintan,

am I missing something? I cannot see what the reason for this is...

Regards,

Benny

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Chintan,

> ...

> URL --> http://server:port/myapp and press go the

> application is loaded and the URL becomes something

> like this -->

> http://server:port/myapp/my.jsp;jsessionid=(J2EEXXXX)X

> XXXXXXEnd;saplb_*=XXXXXX

>

This is the default behaviour for the first request from the client. After that, by default, the session is tracked with session cookies. You can find the complete description here:

http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/25c82019068449ac97d585c905a0f2/frameset.htm

> I have tried an alternative by setting

> <i><url-session-tracking/></i> in web-j2ee-engine.xml

> file but still the JSESSIONID gets appended in the

> URL.

I think with this configuration you set the behaviour to use URL rewritting. So this is the opposite of what you want to achieve.

Best regards,

Stefan Brauneis

chintan_virani
Active Contributor
0 Kudos

Stefan,

I had gone thru the link you gave.

Anyways I was just trying out the method if it can suppress the JSESSIONID.

Do you have any clue on how to avoid JSESSIONID in url then let me know.

<b>- Chintan</b>