Sunday, 22 February 2015

How to set Session time out in ADF application

How to set Session time out in ADF application



Where and how to set the Session time out setting in Oracle ADF application? Answer is with every application there is a file called web.xml file in your ViewController Project WEB-INF folder. The file which contains configuration settings for your web application on run-time. JDeveloper provides a declarative way to modify this settings by default the session timeout is 35 minutes.

Here what documentation says
Session Timeout
(Optional) Enter an integer value of minutes of inactivity are required before you want to force your web application's sessions to expire. Corresponds to the tag of the subelement. Note, this value can be overridden for individual sessions by means of the setMaxInactiveInterval() method of the javax.servlet.http.HttpSession interface.

Here is the setting in Jdeveloper



after deployment you can see the timeout value in the deployment properties of your application as well here the screen shot of weblogic console





On runtime if session expires you will get the similar message

No comments:

Post a Comment