Dear Ivy support,

Using Ivy 6.2 we set the User session time-out value in the web.xml. Is there a way to extend the session validity programmatically without any User action?

In a JSF context, would this method have any effect on the Ivy Session ? javax.faces.context.ExternalContext.setSessionMaxInactiveInterval(int interval) Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.

Thanks in advance Emmanuel

asked 31.03.2017 at 10:47

Emmanuel's gravatar image

accept rate: 66%

Hi @Emmanuel

Ivy sessions are mapped to the http sessions. If the webserver (tomcat) destroys a http session, the ivy session will be also destroyed.

The only way to modify programmitcly the session timeout seems to be the following way: Create your own HttpSessionListener and register this one in the web.xml. But this is probably not what you want.

In a JSF environment you should have another opportunity, as you mentioned:

javax.faces.context.ExternalContext.setSessionMaxInactiveInterval(int interval)

And as the documentation says: Servlet: This must call setMaxInactiveInterval on the underlying javax.servlet.http.HttpServletRequest instance.. The jsf context implementation will modify the session timeout on the http session.


answered 03.04.2017 at 16:05

Alex%20Suter's gravatar image

Alex Suter ♦♦
accept rate: 84%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 31.03.2017 at 10:47

Seen: 3,169 times

Last updated: 03.04.2017 at 16:05