PVWA - How to adjust the PVWA Idle session timeout

PVWA - How to adjust the PVWA Idle session timeout

1030
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 13:00 PM


Objective


How to change the default Session Idle timeout for PVWA Sessions?

Note: This Article provides instructions for adjusting the PVWA session timeout. Please consider that it will put more of a performance hit on the Idira systems overall. Also, please consider the security implications of extending the web session. It is the recommendation of Idira to keep the default timeout.

Updated 2020.06.26 - The process below is not intended for Privilege Cloud environments.  Please reach out to your Privilege Cloud CSM for alternate instructions.


Environment


12.6;13.0;14.0;14.2;14.4;14.6 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access

Procedure


The Idle Session timeout is set to 20 minutes by default on IIS.

This means that users will be disconnected from a PVWA session if the session will be idle for 20 minutes.

(Idle means that there is no activity at all on the session with keyboard or mouse).

The idea is to save resources in case user’s session is idle.

We cannot totally disable the idle session timeout on PVWA and vault environment, because of the vault parameter "IdleTimeout" 
(the IdleTimeout parameter is a mandatory in dbparm.ini, if you remove it will use the default IdleTimeout which is 20 minutes.
the parameter cannot be set less than 10 min, in case you do set it for example to IdleTimeout=9 then the vault service will not start).
In any case it's not recommended as it can cause unnecessary performance issue on PVWA server.
As any PVWA session will keep on going until the users will log out.

Note:
The minimum time we can set for Idle Session timeout is 10 minutes.

There are 4 mandatory IIS settings which we need to set for "Session Idle timeout" on IIS side and two parameters on vault side in dbparm.ini

On the PVWA\IIS side:
1. Session authentication
2. IISAppPool
3. Forms authentication
4. Application SessionIdlePeriod


There are 2 DBParm.ini settings to change:
1. LockTimeout
   Defines the timeout in minutes after which users need to reauthenticate.
   Note: the LockTimeout value must be higher than the Idletimeout
 
2. IdleTimeout
   The number of minutes a user session can be idle before it is logged.

In order to change the default Idle Session timeout please follow the instruction below:

On Vault side: 
Set the desire values, for example 30 Minutes 
Set the values in dbparm.ini:
LockTimeout=40
IdleTimeout=30

Note: The minimum amount of time you can set efficiently is 10 minutes. 

PrivateArk Server Service must be restarted to re-read the new timeout values in the DBParm.ini
NOTE: Restarting the PrivateArk service will cause a momentary downtime and can effect the production (users connected to the vault will be disconnected, Vault will become unavailable to all component servers)

On PVWA side:

Session authentication:
1. On PVWA server open IIS server management console.
2. Stand on PasswordVault and select on the right-side window “Session State”.
3. In “Session State” under Cookies Settings > "Time-out (in minutes):" set it, for example, to 30 minutes.
4. On the right side select Apply.

IISAppPool:
1. Stand on “Application pools” and select on the right side PasswordVaultWebAccessPool
2. Right click on PasswordVaultWebAccessPool and select “Advanced Settings…”
3. In “Advanced Settings” window go to "Idle Time-out (in minutes):" set it also 30 minutes and click ok.

Forms authentication:
1. On PVWA server open IIS server management console.
2. Navigate to site PasswordVault and click on "Authentication" and select Forms authentication
3. Edit Forms authentication and set the value to 40 and save 
 
Application SessionIdlePeriod
1. On the IIS server, please navigate to the Password Vault Site, and click on Application Settings.
2. Add the following entry: SessionIdlePeriod
3. Set the value be higher than the required timeout.
For example, if the required timeout is set to 30 minutes, set SessionIdlePeriod value to 40

Perform IIS reset for all changes to take effect.
 
Note: In some cases a Third Party component could be is use to connect to PVWA,for example: load balancer and Citrix, in which cases we also need to check the Third Party component that the idle session timeout settings are not with lower values then the settings in PVWA and vault.


Additional Information


Details

 

Q:

 

How to change the default Session Idle timeout for PVWA Sessions?

 

A:

 

The Idle Session timeout is set to 20 minutes by default on IIS.

This means that users will be disconnected from a PVWA session if the session will be idle for 20 minutes.

(Idle means that there is no activity at all on the session with keyboard or mouse).

The idea is to save resources in case user’s session is idle.

 

We cannot totally disable the idle session timeout on PVWA and vault environment, because of the vault parameter "IdleTimeout" 

(the IdleTimeout parameter is a mandatory in dbparm.ini, if you remove it will use the default IdleTimeout which is 20 minutes.

the parameter cannot be set less than 10 min, in case you do set it for example to IdleTimeout=9 then the vault service will not start).

In any case it's not recommended as it can cause unnecessary performance issue on PVWA server.

As any PVWA session will keep on going until the users will log out.

 

Note:

 

The minimum time we can set for Idle Session timeout is 10 minutes.

There are two mandatory IIS settings which we need to set for "Session Idle timeout" on IIS side and one parameter on vault side in dbparm.ini

 

On the PVWA\IIS side:

 

1. Session authentication

2. Application SessionIdlePeriod

 

On the vault server in dbparm.ini:

1. IdleTimeout

 

Is the time in minutes which a user will be disconnected if the session is idle with no activity during that time.

In order the changes will take effect in IIS side will need to perform IIS reset 

On vault side the PrivateArk Server Service must be restarted to re-read the new IdleTimeout value in the DBParm.ini 

 

In order to change the default Idle Session timeout please follow the instruction below:

 

Note: The minimum amount of time you can set efficiently is 10 minutes. 

 

1. On PVWA server open IIS server management console.

2. Stand on PasswordVault and select on the right side window “Session State”.

3. In “Session State” under Cookies Settings > "Time-out (in minutes):" set for it example 10 minutes.

4. On the right side select Apply.

5. Stand on “Application pools” and select on the right side PasswordVaultWebAccessPool

6. Right click on PasswordVaultWebAccessPool and select “Advanced Settings…”

7. In “Advanced Settings” window go to "Idle Time-out (in minutes):" set it also 10 minutes and click ok.

8. Perform an IIS reset.

 

At this point any session on PVWA which will be idle for 10 min will disconnect the session automatically.  

Note: If you set for example in IIS settings 90 minutes, but in vault side on dbparm.ini you set the parameter IdleTimeout=10

Then the users will be disconnect after 10 min if they will be idle on vault side, also its recommended to do it on IIS side as in vault side it will also affect other components after 10 minutes of idle such as PrivateArk.

 




Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001Im6CAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail