Question
How to configure session timeout in Horde webmail?
Answer
Horde session timeout settings are configured within the $conf['session']['timeout']
parameter in the /etc/psa-webmail/horde/horde/conf.php
file. By default, it is set to 0, which means sessions stay active until the user logs out:
# egrep ‘*session*.*timeout‘ /usr/share/psa-horde/config/conf.php
$conf[‘session’][‘timeout’] = 0;
To adjust this value:
-
Connect to a Plesk server via SSH.
-
Open the Horde configuration file
conf.php
in a text editor. In this example, we are using the vi editor:# vi /usr/share/psa-horde/config/conf.php
-
Set the
$conf['session']['timeout']
parameter to a desired number (in seconds). For example, for 30 minutes (1800 seconds):# egrep ‘*session*.*timeout’ /usr/share/psa-horde/config/conf.php
$conf[‘session’][‘timeout’] = 1800; -
Save the changes and close the file.
-
Restart Apache to apply the changes:
-
for CentOS/RHEL-based distributions:
# service httpd restart
-
for Debian/Ubuntu-based distributions:
# service apache2Â restart
-