WebMail Pro PHP documentation

How to log user out due to inactivity

By default, user session in WebMail Pro doesn't expire.

If you wish to reconfigure the product so that users are logged out after a certain amount of time due to inactivity, that's done by modifying the following value in data/settings/settings.xml file:

<IdleSessionTimeout>0</IdleSessionTimeout>

The value is specified in minutes.

It's also possible to assign custom logout URL so that users are redirected to a specific page upon logging out. To do that, add the following item to array defined in data/settings/config.php file:

'labs.webmail.custom-logout-url' => 'http://.../',

Note that this also affects the page users are redirected to upon clicking Logout.