was9 liberty怎么设置应用的cookie name?默认是jsessionid,要改成自定义的.?

was9 liberty怎么设置应用的cookie name? 默认是jsessionid,要改成自定义的

参与13

3同行回答

hbhe0316hbhe0316数据库管理员IBM
详见官方文档:https://www.ibm.com/support/knowledgecenter/zh/SSHRKX_8.5.0/mp/admin-system/http_sessn_cookie.html显示全部
IT分销/经销 · 2019-07-02
浏览3189
YuLiminYuLimin资深技术顾问IBM广州
Liberty的配置文件server.xml文件也可以配置httpSession allowOverflow="true" alwaysEncodeUrl="true" cookieSecure="true" debugCrossover="true" idLength="28" idReuse="true"invalidateOnUnauthorizedSessionRequestException="true" noAdditionalInfo="true" prot...显示全部

Liberty的配置文件server.xml文件也可以配置

httpSession allowOverflow="true" alwaysEncodeUrl="true" cookieSecure="true" debugCrossover="true" idLength="28" idReuse="true"

invalidateOnUnauthorizedSessionRequestException="true" noAdditionalInfo="true" protocolSwitchRewritingEnabled="true" securityUserIgnoreCase="true"

sslTrackingEnabled="true" urlRewritingEnabled="true" useContextRootAsCookiePath="true" cookieHttpOnly="true" invalidationTimeout="23m"

maxInMemorySessionCount="2000" forceInvalidationMultiple="4" cookieName="NEW_JSESSION_ID" cookieDomain="abc.com"

收起
互联网服务 · 2019-11-28
浏览3304
张颖颖张颖颖系统运维工程师某公司
谢谢回答,不过应该和was8.5的不同,已解决,在应用的web.xml中添加下面部分,重启后查看cookie更改成功。<session-config> <cookie-config> <name> new-cookiename </name> </cookie-config></session-config>...显示全部

谢谢回答,不过应该和was8.5的不同,已解决,在应用的web.xml中添加下面部分,重启后查看cookie更改成功。
<session-config>

     <cookie-config>
            <name> new-cookiename </name>
    </cookie-config>

</session-config>

收起
互联网服务 · 2019-07-02
浏览3127

提问者

张颖颖
系统运维工程师某公司
擅长领域: 服务器中间件云计算

相关问题

相关文章

问题状态

  • 发布时间:2019-07-02
  • 关注会员:3 人
  • 问题浏览:4910
  • 最近回答:2019-11-28
  • X社区推广