initOptions.js和worklight.properties文件中会话属性的行为是什么? [英] What is the behavior of the session properties in the initOptions.js and worklight.properties file?
问题描述
我希望了解以下文件中定义的会话属性的行为
I'm looking to understand the behavior of the session properties that are defined in the following files
initOptions.js
// # Worklight server connection timeout
//timeout: 30000,
此参数是否会影响客户端移动应用并在定义的时间间隔后断开与Worklight Server的连接?
Does this parameter affect the client mobile app and disconnect the connection to the Worklight Server after the defined interval ?
worklight.properties
#####################################################################
# Idle session timeout in minutes
#####################################################################
#serverSessionTimeout=10
这是否会覆盖JEE服务器上的Web容器会话超时属性,以便在给定的时间间隔后关闭或销毁空闲会话?
Does this override the Web Container session timeout property on the JEE server to close or destroy idle sessions after the given time interval ?
推荐答案
-
在
initOptions.js
,timeout
属性与应用等待连接Worklight Server的时间有关。
In
initOptions.js
, thetimeout
property relates to the amount of time the app will wait for a connection to the Worklight Server.
In worklight.properties
, serverSessionTimeout
属性执行以下操作: http://docs.oracle.com/javaee/6/api/javax/servlet/ http / HttpSession.html #setMaxInactiveInterval(int)
In worklight.properties
, the serverSessionTimeout
property does the following: http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int)
您还可以查看以下问题: SessionTimeout:web.xml vs session.maxInactiveInterval()
You can also take a look at this question: SessionTimeout: web.xml vs session.maxInactiveInterval()
In简而言之,它就是你写的。
In short, it does what you wrote.
这篇关于initOptions.js和worklight.properties文件中会话属性的行为是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!