JBoss 7.0.1 running without jsessionid in the URL is not working

痞子三分冷 提交于 2019-12-05 01:38:28

are you using https ssl or port 80 http ? if using http then remove the secure cookie as secure means over ssl

Looks like web server realizes its not getting cookie and so making a new session every time. if you disable secure cookie (means make it false) then it should work.

it it does not make sure the browser is accepting cookies. https://www.youtube.com/watch?v=CVEo7wug2ks shows you how to see cookies (do not delete unless testing)

Try using <http-only>true/false</http-only> in your cookie-config to find out if it is an issue with the cookie and the http-only add-on.

Actually http-only requires a browser supporting it and aims at protecting the cookie from someone retrieving the cookie on the client-side. So it should not be directly relevant. However I would not bet my house that this is correctly handled inside JBoss.

If for some reason the cookie is not generated with the 1st request the fallback of the server is usually encoding JSessionID in the URL.

Have you tried setting the javax.faces.STATE_SAVING_METHOD to client in the web.xml?

<context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
</context-param>

That should have the JSF state saved on the client side instead of the server.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!