1

I have one problem with jsessionid in url. i want only to use jsessionid with cookies, but i tried everything including adding this to web.xml.

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

Any idea how to solve thisone?

BlackCat
  • 329
  • 5
  • 17

1 Answers1

0

Use servlet 3.0 version and add this to the web.xml:

<session-config>
    <cookie-config>
        <http-only>true</http-only>
    </cookie-config>
    <tracking-mode>COOKIE</tracking-mode>
</session-config>
madhead
  • 31,729
  • 16
  • 153
  • 201