*/
@Override
public void sessionCreated(HttpSessionEvent se) {
ServletContext servletContext = se.getSession().getServletContext();
ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
JCommuneProperty property = (JCommuneProperty) ctx.getBean("sessionTimeoutProperty");
int timeoutInSeconds = (int) TimeUnit.SECONDS.convert(property.intValue(), TimeUnit.MINUTES);
if (timeoutInSeconds > 0) {
se.getSession().setMaxInactiveInterval(timeoutInSeconds);
} else {
/* Zero property value should mean infinitive session.
To disable session expiration we should pass negative value here.