如何在 tomcat 8 中将 Cookie Processor 更改为 LegacyCookieProcessor [英] How to change Cookie Processor to LegacyCookieProcessor in tomcat 8
本文介绍了如何在 tomcat 8 中将 Cookie Processor 更改为 LegacyCookieProcessor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的代码在 tomcat 8 8.0.33 版上运行,但在 8.5.4 上我得到:为该 cookie 指定的域 [.mydomain] 无效.
My code is working on tomcat 8 version 8.0.33 but on 8.5.4 i get : An invalid domain [.mydomain] was specified for this cookie.
我发现在 tomcat 8 最新版本中引入了 Rfc6265CookieProcessor.
I have found that Rfc6265CookieProcessor is introduced in tomcat 8 latest versions.
它在官方文档上说这可以在 context.xml 中恢复为 LegacyCookieProcessor,但我不知道如何.
It says on official doc that this can be reverted to LegacyCookieProcessor in context.xml but i don't know how.
请告诉我该怎么做.
谢谢
推荐答案
可以在context.xml中试试
You can try in context.xml
<CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />
参考:https://tomcat.apache.org/tomcat-8.0-doc/config/cookie-processor.html
这篇关于如何在 tomcat 8 中将 Cookie Processor 更改为 LegacyCookieProcessor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文