高分请教高手!!!
我们的系统web server是resin.是用jsp+java、数据库为oracle开发的系统,现在存在session过期的问题。进入系统后,重编译servlet时session过期是对的。问题是不编译servlet时session也会过期,请问这和resin配置有什么关系。说明一下session的设置一切正确。
resin的配置如下:
<caucho.com>
<java compiler="internal" compiler-args="" work-dir='work'/>
<resource-ref>
<res-ref-name>jdbc/test</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<init-param driver-name="org.gjt.mm.mysql.Driver"/>
<init-param url="jdbD:mysql://localhost:3306/test"/>
<init-param user=""/>
<init-param password=""/>
<init-param max-connections="200"/>
<init-param enable-transaction="true"/>
</resource-ref>
<jsp precompile='true' static-encoding='true'/>
<http-server>
<app-dir>doc</app-dir>
<!-- the http port -->
<http port='8888'/>
<caucho-status>true</caucho-status>
<thread-max>150</thread-max>
<thread-keepalive id='100'/>
<request-timeout id='30s'/>
<cache dir='cache' size='1024' entries='1024'/>
<host id=''>
<error-log id='log/error.log'/>
<war-dir id='webapps'/>
<web-app id='/'>
<class-update-interval id='1'/>
<classpath id='WEB-INF/classes'
source='WEB-INF/classes'
compile='true'/>
<cache-mapping url-pattern='/' expires='2s'/>
<welcome-file-list>index.xtp, index.jsp, index.html</welcome-file-list>
<session-config>
<session-max>4096</session-max>
<session-timeout>10000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
<file-store>sessions</file-store>
</session-config>
<multipart-form/>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet-mapping url-pattern='*.xtp'
servlet-name='com.caucho.jsp.XtpServlet'/>
<servlet-mapping url-pattern='*.jsp'
servlet-name='com.caucho.jsp.JspServlet'/>
<context-param info='An application information string'/>
<servlet-mapping url-pattern='/snoop/*' servlet-name='snoop-servlet'/>
<servlet servlet-name='snoop-servlet' servlet-class='Env'>
<init-param info='A servlet information string'/>
</servlet>
<path-mapping url-regexp='^/~([^/]*)' real-path='/home/$1/public_html/'/>
</web-app>
<web-app id='/idealgmp' app-dir="D:\tyjideal\idealgmp\idealpages">
<classpath id='D:\tyjideal\idealgmp\classes' source='D:\tyjideal\idealgmp\classes' compile='true'/>
<cache-mapping url-pattern='/' expires='2s'/>
<welcome-file-list>index.xtp, index.jsp, index.html, index.htm</welcome-file-list>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet-mapping url-pattern='*.xtp' servlet-name='com.caucho.jsp.XtpServlet'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/>
<session-config>
<session-max>400</session-max>
<session-timeout>1000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
<cookie-version>0</cookie-version>
</session-config>
</web-app>
<web-app id='/finance' app-dir="D:\finance\pages">
<classpath id='D:\finance\classes' source='D:\finance\classes' compile='true'/>
<cache-mapping url-pattern='/' expires='2s'/>
<welcome-file-list>index.xtp, index.jsp, index.html, index.htm</welcome-file-list>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet-mapping url-pattern='*.xtp' servlet-name='com.caucho.jsp.XtpServlet'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/>
<session-config>
<session-max>4000</session-max>
<session-timeout>10000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
<cookie-version>0</cookie-version>
</session-config>
</web-app>
<web-app id='/idealga' app-dir="D:\gawork\pages">
<classpath id='D:\gawork\classes' source='D:\gawork\classes' compile='true'/>
<cache-mapping url-pattern='/' expires='2s'/>
<welcome-file-list>index.xtp, index.jsp, index.html, index.htm</welcome-file-list>
<servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
<servlet-mapping url-pattern='*.xtp' servlet-name='com.caucho.jsp.XtpServlet'/>
<servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/>
<session-config>
<session-max>4000</session-max>
<session-timeout>10000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>true</enable-url-rewriting>
<cookie-version>0</cookie-version>
</session-config>
</web-app>
</host>
</http-server>
</caucho.com>
好象没问题啊?