Session 会话未保存在bea weblogic 10.3中

Session 会话未保存在bea weblogic 10.3中,session,weblogic-10.x,Session,Weblogic 10.x,如何配置我的web应用程序以使用bea weblogic中的会话? 在web.xml中,有以下几行: <session-config> <session-timeout>60</session-timeout> </session-config> 变量user是否不为空?在代码中的几个点打印会话id,以查看它是否保持一致。还要看看这些链接是否有帮助:我的代码没有问题。它在OAS 10.1.2上正常工作,但在Bea Weblogic上则不然

如何配置我的web应用程序以使用bea weblogic中的会话? 在web.xml中,有以下几行:

<session-config>
    <session-timeout>60</session-timeout>
</session-config>

变量
user
是否不为空?

在代码中的几个点打印会话id,以查看它是否保持一致。还要看看这些链接是否有帮助:我的代码没有问题。它在OAS 10.1.2上正常工作,但在Bea Weblogic上则不然。
<session-descriptor>
    <persistent-store-type>memory</persistent-store-type>
    <sharing-enabled>true</sharing-enabled>
</session-descriptor>
 _sess.setAttribute("user",user);
 ...............................
 User user = (User ) _sess.getAttribute("user");