|
|
原来只是一个小设定
官方文档
http://books.zkoss.org/wiki/ZK_Configuration_Reference/zk.xml/The_session-config_Element#The_timeout-message_Element
会话超时元素 (The session-timeout Element)
[默认: 0 (根据网页服务器)]这个设定可以在客户端送出多个请求之间,指定会话有效的秒数。若指定负数则会话永不失效。
默认0秒则使用zk缺省值(定义在/WEB-INF/[size=12.1528px]web.xml中)。
超时讯息元素 (The timeout-message Element)
[可选择的][5.0.5 开始][默认: 定义在 MZk.UPDATE_OBSOLETE_PAGE 的讯息]
指定会话超时後提示的讯息。本设定只有当timeout-uri没被设定才会生效。
<session-config> <device-type>ajax</device-type> <timeout-message>Session timeout. Please reload.</timeout-message></session-config>
<div style="width: 932px; margin-top: 1em !important; margin-right: 0px !important; margin-bottom: 1em !important; margin-left: 0px !important; font-size: 1em !important; background-color: white !important;" class="syntaxhighlighter xml"> |
|