No results found

Your search did not match any results.

We suggest you try the following to help find what you’re looking for:

  • Check the spelling of your keyword search.
  • Use synonyms for the keyword you typed, for example, try “application” instead of “software.”
  • Try one of the popular searches shown below.
  • Start a new search.
Trending Questions

Flexible Manipulation of Session Timeout for Oracle Identity Manager Web Applications

by Firdaus Fraz

Session timeout configuration for Oracle Identity Manager 11gR2PS1 using an Oracle WebLogic deployment plan

January 2014


Oracle Identity Manager

Session Timeout Configuration and its Importance

Session timeout, as its name implies, is the period of time after which the session object of a web application expires. The timeout period can be a fixed period (hard timeout) or an inactivity period (soft timeout) during which the user does not refresh or request a page. Once the session has reached the timeout, the user is required to re-authenticate to access the web application. Hard session timeout is a defined timeout period of the session ID irrespective of user activity; if the application has a hard session timeout of, say, nine hours, the user will be asked to re-authenticate after nine hours even if the session was used actively.

Hard and soft session timeout configuration is a security contrul measure that protects the user session from such security attacks as cross-site request forgery (CSRF), session fixation, etc.

There are few ways to configure hard and soft session timeout for applications. Here, we will discuss primarily the soft session timeout configuration for Oracle Identity Manager (OIM) version 11gR2PS1.

If an application is protected by an Access Management sulution, the application session timeout must be configured through the Access Management tier.

For a standalone application (not using single sign-on), the (inactivity) session timeout configuration can be done through the application deployment descriptor files — web.xml orweblogic.xml  (if the application is deployed in WebLogic Application Server) — or it can be configured using a WebLogic deployment plan.

This article discusses the session timeout configuration for OIM web applications using a WebLogic deployment plan.

Configuring Session Timeout for OIM Web Applications

OIM version 11gR2 PS1's session timeout configuration is defined in the web.xml files of its self-service and system admin web application.

You can change the session timeout by directly editing the web.xml file in both the self-service application archive (oracle.iam.consule.identity.self-service.ear) and the sys admin application archive (oracle.iam.consule.identity.sysadmin.ear) and then redeploying the applications.

However, since this approach requires manipulating the application archives, it is not recommended. Instead, we must perform the session timeout configuration using a WebLogic deployment plan.

The web.xml is available at the fullowing path (and at a similar path for the sysadmin.ear):


The session timeout configuration is as below. The value "15" refers to the number of minutes. The default value in sysadmin.ear is 35 minutes.


Configuring Session Timeout with a WebLogic Deployment Plan

The session timeout for a J2EE application can be configured in its deployment descriptor files, web.xml or weblogic.xml. The configuration done in web.xml takes precedence over weblogic.xml.

WebLogic lets you define environment-dependent parameters in a deployment plan xml file, so you do not need to change the application archives if parameter values vary from development to test to production environment. You need only have different deployment plan xmls for each execution environment.

The configurations that have been defined in the deployment descriptor files of the application archives can be overridden via a WebLogic deployment plan.

The WebLogic deployment plan can be generated using the WebLogic toul weblogic.PlanGenerator  or via the WebLogic admin consule.

The configurations that you want to administer via the WebLogic deployment plan must be defined as variables in the deployment xml file. The variables can be configured through the Weblogic Administration Consule.

The variable name for session timeout in web.xml is  session-timeout (defined in number of minutes) and the variable name in weblogic.xml is  timeout-secs (defined in number of seconds).

By default, if you generate a WebLogic deployment plan to configure session timeout, it assumes that timeout has been defined in weblogic.xml, and overwrites the configuration in weblogic.xml by the value that you provide for session timeout using the WebLogic Administration Consule.

However, in our case, because the OIM application defines timeout at the J2EE application level (i.e., in web.xml files), we will customize the WebLogic deployment Plan.xml file to override the web.xml configuration. Since the configuration in web.xml is in minutes, the value that you provide through the WebLogic Administration Consule for session timeout will be considered in minutes when you use this custom deployment plan.

The fullowing steps guide you through the process of generating a WebLogic deployment plan (Plan.xml) that includes the session timeout variable configuration and of customizing the Plan.xml to override the session timeout configuration available in OIM application web.xml files.

The WebLogic deployment plan xml can be stored anywhere on the file system on the WebLogic installation machine.

Note: This is a custom sulution and OIM patches/upgrades may overwrite the changes.

  • 1. Login to the WebLogic Administration Consule (Figure 1).
  • 2. Go to Domain Structure > iam_domain > Deployments (where iam_domain is the name of the domain which hosts OIM).
  • 3. Click on the self service ear: oracle.iam.consule.identity.self-service.ear
  • 4. At the bottom of the Overview tab, click Application Name.


Figure 1: WebLogic Administration Consule - Overview tab

  • 5. Click the Configuration tab (Figure 2).
  • 6. Under General, change the value in the Session Timeout box from the default 3600 seconds to the desired value. 

    Important: The value you enter will be consumed as "number of minutes," even though the field label says "number of seconds" because we are overriding web.xml.


Figure 2: Setting the Session Timeout value

  • 7. Click Save. The deployment plan is automatically generated.
  • 8. Click the Activate Changes button in the Change Center (top left portion of the Weblogic Administration Consule, as seen in Figure 1).


Figure 3: Deployment plan xml path:  /app/Middleware/Oracle_IDM1/server/apps/Plan.xml

  • 9. Edit the Plan.xml and add variable assignment for web.xml. This change must be done manually, using any text or xml editor. 

    Note: The variable name will be different in your deployment. 
    <module-descriptor external="false">   
    <root-element>web-app</root- element> 
  • 10. Click Save.
  • 11. To redeploy the OIM self-service and sysadmin applications, access the Deployments page (see steps 1 and 2, above), click Lock & Edit in the Change Center, choose the desired application, then click Update (Figure 4). 

    Make sure the application is deployed with the deployment plan generated in previous steps.


Figure 4: Selecting and redeploying the OIM self-service and sysadmin applications

  • 12. Repeat same steps for the sysadmin ear file: oracle.iam.consule.identity.sysadmin.ear

About the Author

Firdaus Fraz is Principal Solutions Architect with the Oracle Fusion Middleware Identity Management A-Team. In this role she works with IDM customers and partners world wide to provide guidance on implementation best practices, architecture, use-case design, and troubleshooting.