Greetings,
I was developing some apps on JBOSS portal, and there are some cases that need to have a much longer session timeout value that the default value in web.xml.
So, i go about trying to change the session timeout value using setMaxInactiveInterval(). But i notice that the effective session timeout is still the original default value in web.xml in my deployed apps.
The 2 sets of not working code that i had tried are as follows:
int regularSessionTimeout = ServletContexts.getInstance().getRequest().getSession().getMaxInactiveInterval(); log.info("MaxInactiveInterval = " + regularSessionTimeout); ServletContexts.getInstance().getRequest().getSession().setMaxInactiveInterval(12000);
HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false); log.info("MaxInactiveInterval = " + session.getMaxInactiveInterval()); session.setMaxInactiveInterval(12000);
sorry, i left out that i am using portal bridge 1.0.0Beta4