How to modify user session timeouts in vCloud Availability 3.x
search cancel

How to modify user session timeouts in vCloud Availability 3.x

book

Article ID: 314989

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

This article provides details on how to change the idle and maximum user session timeouts for vCloud Availability, allowing you to control the session timeouts according to your own security requirements.

Environment

VMware vCloud Availability 3.0.x

Resolution

To change the user session timeout in vCloud Availability, perform the following steps:
  1. SSH to the vApp Replication Manager as root.
  2. Navigate to the cloud service config directory:
cd /opt/vmware/h4/cloud/config/
  1. Take a backup of the application.properties file:
cp application.properties application.properties.YYYY-MM-DD.bak
  1. Edit the application.properties file with a text editor, such as vi.
  2. At the bottom of the file add the following lines:
# Custom timeout settings
session.timeout=1800000
session.maxage=86400000

Note: The timeout values are in milliseconds and the default idle and maximum session timeouts are 30 minutes and 24 hours respectively.
  1. Save the modified application.properties file.
  2. Log into the vCloud Availability Provider Portal.
  3. In the left pane, click System Monitoring.
  4. Under System health, click Restart Service.
Note: Some pages in the vCloud Availability Portal refresh regularly to ensure you have up-to-date information on the system health and replication statuses. These pages send HTTP requests in the background keeping the user session alive past the idle timeout, even if there is no direct interaction in the browser from the user.