Set up and use trusted browsers
A trusted browser can reopen the u5CMS backend after the ordinary CMS session expires. The browser uses the permissions of the account that registered it. Each CMS installation needs its own configuration and each host its own registration.
1. Enable the feature in config.php
The feature is available from u5CMS 12.9.5.10. It requires HTTPS and session-based u5CMS login. With HTTP Basic Authentication or the built-in OpenID Connect (OIDC) login enabled, browser trust is unavailable.
In the installation directory, edit the active config.php. Set the following two variables once. If entries already exist, update them and retain the other accounts that should still have access.
$u5trusteddeviceenabled = 'yes';
$u5trusteddeviceusers = array(
'alice@example.org' => 1,
'bob@example.org' => 2,
);
Replace the example addresses with the exact login names of existing CMS accounts. Use whole numbers without quotation marks. Alice may register one browser profile on this installation and Bob may register two. An omitted account or a limit of 0 prevents registration and resumption for that account. Set $u5trusteddeviceenabled = 'no'; to disable the feature for the entire installation.
2. Register the browser profile
- Open the backend in the browser profile you intend to use. Sign in as usual, using AGOV if the site offers it.
- On that same host, open u5admin/trusteddevice.php under the CMS installation directory. For a CMS installed at the root, the path is /u5admin/trusteddevice.php.
- Check the account name and select Trust this browser. The entry marked (this browser) confirms registration. If all places are taken, use Revoke on the profile you want to replace.
3. Return later or revoke access
To continue later, close the tab. Reopen the backend on the same host in the same profile. The browser cookie lasts up to 400 days and is renewed at most once a day when used. A cloud browser can resume access only while it retains that cookie. Anyone using the registered profile can act with the account's CMS permissions.
Logging out of u5CMS also revokes trust for the current profile. From version 12.9.5.12, explicitly switching accounts revokes the previous account's registration on this browser. To remove a lost profile, sign in from another browser and select Revoke beside its entry. Revoking an entry prevents future automatic sign-in. An ordinary session already open in that profile can continue until it expires.