如何设置JSESSIONID的长度 — oracle-tech

    Forum Stats

  • 3,715,998 Users
  • 2,242,925 Discussions
  • 7,845,726 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

如何设置JSESSIONID的长度

734003
734003 Member Posts: 1
edited December 2009 in 中间件
我们知道
jsessionid 的格式如: sessionid!primary_jvmid!secondary_jvmid

BEA提供的资料中说明了primary_jvmid和secondary_jvmid的长度是10个字节,为何实际当中不是呢?可能多与10个字节可能少于10个,,每次重启WebLOgic服务时,

长度都不同。

还有就是如何通过配置文件的方式配置该值的长度呢

谢谢

Answers

  • Yekki-Oracle
    Yekki-Oracle Member Posts: 35
    在weblogic.xml中加入:

    <session-descriptor>
    <session-param>
    <param-name>
    IDLength
    </param-name>
    <param-value>
    10
    </param-value>
    </session-param>
    </session-descriptor>

    长度范围:The minimum value is 8 bytes and the maximum value is Integer.MAX_VALUE.
This discussion has been closed.