BeX5_V3.8企业版(具体的版本号是5.3.8.6257,2018.11.26)以及之后的版本,平台默认就支持了session共享的配置
基于Cache DB缓存的Session共享(spring-session + redis),因此需要自己先安装redis

业务服务器只有BusinessServer是有状态的,只需要配置BusinessServer的Session共享即可
1.修改%JUSTEP_HOME%/runtime/BusinessServer/WEB-INF/justep.xml中的is-cluster-session为true
2.设置环境变量REDIS_HOST, REDIS_PORT, REDIS_PASSWORD
注:可以设置为系统的环境变量,或者在tomcat\bin\catalina.bat中设置;推荐设置系统的环境变量,这样BeX5版本升级时避免忘记配置
3.如果要修改session的有效期时长,需要修改%JUSTEP_HOME%/runtime/BusinessServer/WEB-INF/spring/session.xml文件
设置p:maxInactiveIntervalInSeconds的值,单位是秒, 默认值是1800秒
如:

 <bean class="org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration"
        p:httpSessionStrategy-ref="httpSessionStrategy" p:maxInactiveIntervalInSeconds="300"/>