如何在tomcat 8中将Cookie处理器更改为LegacyCookieProcessor [英] How to change Cookie Processor to LegacyCookieProcessor in tomcat 8

查看:1763
本文介绍了如何在tomcat 8中将Cookie处理器更改为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.

我发现Rfc6265CookieProcessor是在tomcat 8最新版本中引入的。

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处理器更改为LegacyCookieProcessor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆