Re: Session Id is appended as URL path parameter in very first request

Splash Forums Rewrite Users Session Id is appended as URL path parameter in very first request Re: Session Id is appended as URL path parameter in very first request

#23012

You are right. This is the default behavior of a servlet container. If the client doesn’t include a cookie in the first request, the container cannot tell whether the client supports cookies or not. Therefore the container embeds the session id in the URL.

But you can disable this in your web.xml using the session-config element:

<session-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>

I hope this helps. :)

Christian