应用程序 Cookies 不会改变

Application Cookies does not change

我正在为我的应用程序使用 weblogic 服务器。 我在 weblogic.xml 文件中配置了 cookie,名称为 TEST_COOKIE,如下所示。

 <?xml version='1.0' encoding='UTF-8'?>
 <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
<weblogic-version>10.3</weblogic-version>
<session-descriptor>
    <persistent-store-type>replicated_if_clustered</persistent-store-type>
    <cookie-http-only>false</cookie-http-only>
    <cookie-name>TEST_COOKIE</cookie-name>
    <cookie-secure>true</cookie-secure>
    <url-rewriting-enabled>false</url-rewriting-enabled>
</session-descriptor>

我想知道服务器端是如何生成cookie的值的

如果您使用单个服务器,则值为:

JSESSIONID=SESSION_ID!PRIMARY_JVMID_HASH!CREATION_TIME

如果您使用的是集群,会话故障转移信息包含如下:

JSESSIONID=SESSION_ID!PRIMARY_JVMID_HASH!SECONDARY_JVM_HASH!CREATION_TIME