was9 liberty怎么设置应用的cookie name? 默认是jsessionid,要改成自定义的
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"
收起谢谢回答,不过应该和was8.5的不同,已解决,在应用的web.xml中添加下面部分,重启后查看cookie更改成功。
<session-config>
<cookie-config>
<name> new-cookiename </name>
</cookie-config>
</session-config>
收起