关于从一个应用系统登录到另外一个应用系统导致session错乱解决

 最近用项目,需要从另外一个系统已openWindow的方式打开,碰到的问题是,这样做以后,两个的系统的session全乱套了。

解决办法:在web-Inf下增加weblogic.xml

 

内容:

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE weblogic-web-app
  PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN"
  "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
 <session-descriptor>
  <session-param>
   <param-name>PersistentStoreType</param-name>
   <param-value>replicated_if_clustered</param-value>
  </session-param>
  <session-param>
   <param-name>TimeoutSecs</param-name>
   <param-value>3600</param-value>
  </session-param>
  <session-param>
    <param-name>CookieName</param-name>
    <param-value>project</param-value>
   </session-param>
 </session-descriptor>
 <jsp-descriptor>
  <jsp-param>
   <param-name>pageCheckSeconds</param-name>
   <param-value>-1</param-value>
  </jsp-param>
  <jsp-param>
   <param-name>compilerSupportsEncoding</param-name>
   <param-value>true</param-value>
  </jsp-param>
  <jsp-param>
   <param-name>encoding</param-name>
   <param-value>UTF8</param-value>
  </jsp-param>
  <jsp-param>
   <param-name>precompile</param-name>
   <param-value>true</param-value>
  </jsp-param>
  <jsp-param>
   <param-name>precompileContinue</param-name>
   <param-value>true</param-value>
  </jsp-param>
 </jsp-descriptor>
 <container-descriptor>
  <servlet-reload-check-secs>-1</servlet-reload-check-secs>
 </container-descriptor>
</weblogic-web-app>

 

主要代码是:

<session-param>
    <param-name>CookieName</param-name>
    <param-value>project</param-value>
   </session-param>

你可能感兴趣的:(jsp,Web,xml,weblogic,servlet)