Hi,
we are currently devloping iViews (JspDynPapes) for EP6 SP2.
We have several iViews which put bean in the iPortalComponentSession and the HttpSession.
We have the following problem:
An iView stores information in a bean and put it into session to be displayed in a table on a JSP. Now,
if the user waits for x minutes (more than 15!) and he triggers an server side event of the ivew, the iView tries to get the bean back from session. But, if the user has done nothing for a certain period, the bean can not be accessed in that session. This raises an NullPointerException. The bean seems to be disappeared or invalid.
Do beans stored in a session get invalid or deleted after a certin period? Can this period be customized?
Thanks for your help,
Maik
Hi Maik,
not the beans stored in the session become invalid but the session itself! For session timeout settings see Anyway to Setting Portal Timeout
In addition, see http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSession.html#setMaxInactiveInterval(int) (which overrides the servlet-container settings for this specific session).
Hope it helps
Detlev
Add a comment