By referring this OWASP recommendations, i tried using HttpOnly flag with my JSESSIONID ,
but I am unable to do, as there is no solution given for JBOS 6 and above .
Please provide me the correct sollution.
I tried this:
In web.xml
<session-config>
<session-timeout>
30
</session-timeout>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
by doing this my purpose gets solved but it generate new JSESSIONID for each request, unable to persist the session .
:-)