/** This is invoked, whenever an instance of this class is added to the HttpSession object.
* Currently, this method will set the session timeout value
* @param httpSessionBindingEvent the event that identifies the session.
*/
public void valueBound(HttpSessionBindingEvent httpSessionBindingEvent) {
if (log.isDebugEnabled())
log.debug("valueBound event");
if(ContextManagerFactory.instance().getProperty(UserSession.RULE_TIMEOUT) != null ) {
if (log.isDebugEnabled())
log.debug("Setting Timeout to "+(String) ContextManagerFactory.instance().getProperty(UserSession.RULE_TIMEOUT));
httpSessionBindingEvent.getSession().setMaxInactiveInterval(Integer.parseInt((String) ContextManagerFactory.instance().getProperty(UserSession.RULE_TIMEOUT)));
}
}
UserSession.java 文件源码
java
阅读 38
收藏 0
点赞 0
评论 0
项目:jaffa-framework
作者:
评论列表
文章目录