How long does a guest account stay valid, how long does a session last, and where is each one set?
Cloudi-Fi uses two separate durations. Both are set in Policies.
| Setting | What it controls | Where to set it |
| Account duration (account validity) | How long a guest account stays valid, and therefore how long the guest can return and be re-authenticated transparently | Policies > Registration > Guest account duration |
| Session duration | How long an authenticated session lasts before the guest is re-authenticated | Policies > Privileges > Session duration |
Existing durations that were configured per profile or per portal template were migrated into policies by Cloudi-Fi support. Review both settings if your tenant used different durations per profile or per template.
Account duration
Create the User Profile
A profile (Users > Profiles) is a label assigned to accounts. It does not carry a duration. The duration of an account comes from the registration policy that targets the profile of that account.
Set the duration in a registration policy
- In the admin console, go to Policies > Registration.
- Open the Default policy, or select Add policy to create a policy for a specific audience.
- Set Guest account duration. The minimum is one hour.
- Optionally, select Automatic renewal (see below).
- Save.
How a guest gets a profile
The registration policy that applies at registration assigns the profile:
- Default guest profile: assigned when nothing more specific applies.
- Guest-selectable profiles: profiles the guest can choose when self-registering.
- Sponsor-selectable profiles: profiles a sponsor can choose when creating a guest account.
- Lobby-selectable profiles: profiles a Lobby administrator can choose.
A policy can also assign a profile automatically based on its criteria, for example the registration type (self-registration by email or SMS, sponsored, or employee).
Which duration applies
- The Default policy always exists and must define a Guest account duration. It applies when no other policy matches.
- A custom policy applies when all its criteria match, such as location, country, template, user profile, and registration type. It needs at least one parameter. Any parameter it leaves empty is taken from the Default policy.
- When several policies match, the policy with the highest priority in the list wins for each parameter. The Default policy always has the lowest priority. The lower a policy sits in the list, the higher is priority. When several policies match, the lowest one wins for each parameter. Drag and drop policies to change their order.
Example:
| Policy | Criteria | Guest account duration |
| Default policy | None | 1 day |
| Guests | User profile is Guest | 1 month |
| Employees | User profile is Employee | 1 year |
A guest registered with the Guest profile gets a one-month account. A guest who matches no custom policy gets the one-day account from the Default policy.
Automatic renewal
When Automatic renewal is enabled on a policy, the account validity is extended to the full account duration each time the guest authenticates.
View and change the validity of an existing account
- Users > Accounts shows the Validity start and Validity end of each account.
- In Users > Accounts, the bulk actions Extend validity, Expire validity, and Change profile apply to the selected accounts. (Changing profile resets the duration period of the account)
- In Users > Lobby, which lists guest accounts created at the front desk, the end date is limited by the Guest account duration of the registration policy for the selected profile. Extend Account Validity restarts the validity after clicking on “Extend”.
Dates are shown in your administrator timezone. The location’s time zone sets the day boundaries.
Re-authentication of returning guests
Account validity authorizes the re-authentication of a guest based on persistent first-party cookies. The activation of the “Remind Authentication” feature allows the re-authentication to be transparent for the same device, for the duration of the account validity. The status is Returning (auto) in Users > Authentications.
Session duration
Session duration defines when an authenticated session expires. It applies to portal authentication and to RADIUS authentication, where it is sent to the access point or controller as the Session-Timeout attribute. For locations synchronized with Zscaler, it also sets the IP surrogacy duration pushed to Zscaler.
Set the duration in a privilege policy
- In the admin console, go to Policies > Privileges.
- Open the Default policy, or select Add policy to create a policy for a specific audience.
- Set Session duration. The minimum is 30 minutes, and the Default privilege policy must define it.
- Save.
Privilege policies use the same matching logic as registration policies: criteria, priority order, and the Default policy as fallback. They also support extra criteria, such as SSID, date, and time.
When a session ends and the account is still valid, the guest is re-authenticated transparently. On time-limited plans, the session is cut short to the remaining time credit.