[英]Configure weblogic.xml to send secure JSESSIONID
我正在嘗試添加到 weblogic.xml 文件<cookie-secure>
標簽:
<wls:session-descriptor>
<wls:timeout-secs>1800</wls:timeout-secs>
<wls:cookie-path>/my-web</wls:cookie-path>
<wls:cookie-http-only>false</wls:cookie-http-only>
<wls:url-rewriting-enabled>false</wls:url-rewriting-enabled>
<wls:sharing-enabled>true</wls:sharing-enabled>
<wls:invalidate-on-relogin>true</wls:invalidate-on-relogin>
<wls:cookie-secure>true</wls:cookie-secure>
</wls:session-descriptor>
但是出現一個錯誤:
cvc-complex-type.2.4.d: Invalid content was found starting with element 'wls:cookie-secure'. No child element is expected at this point
怎么可能解決問題?
正確的順序是:
<wls:timeout-secs>1800</wls:timeout-secs>
<wls:cookie-path>/my</wls:cookie-path>
<wls:cookie-secure>true</wls:cookie-secure>
<wls:cookie-http-only>true</wls:cookie-http-only>
<wls:url-rewriting-enabled>false</wls:url-rewriting-enabled>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.