Tutorial: How to Change the Web Session Timeout
With this tutorial, you can change the web session timeout for Access Server's web services.
Overview
When you authenticate to Access Server's Client Web UI (or client web service, CWS) or Admin Web UI (or admin web services, AWS), your session remains active for a set timeframe. You remain signed in when you are actively doing things on the web page, but your session expires if you're inactive after 30 minutes.
You can follow this tutorial to adjust this default 30-minute setting.
An installed Access Server.
Console access and the ability to get root access.
Sign in to the console and get root privileges.
Switch to the scripts directory:
cd /usr/local/openvpn_as/scripts/
See the current setting:
./sacli ConfigQuery | grep -i "sa.session_expire"
If nothing displays, the sa.session_expire configuration key uses the default value of 1800 seconds (30 minutes).
Set the web session inactivity timeout to five minutes:
./sacli --key "sa.session_expire" --value "300"1 ConfigPut ./sacli start
You set the sa.session_expire configuration key to a value in seconds. So, for this example, it's 300 seconds, which is five minutes. Adjust your command to the number of seconds you desire for the session expiration.
Remove the key so it resets to its default of 30 minutes:
./sacli --key "sa.session_expire" ConfigDel ./sacli start