Sub topic 8
Session settings and session security levels
This chapter assumes you can navigate Setup, you know how profiles and permission sets work, and you have read the earlier chapters on MFA and verification methods. Here you will learn how a session works, which settings control it, and how session security levels connect to MFA.
What a session is
After a user signs in, Salesforce creates a session. A session is a temporary record that proves the user already authenticated, so the browser does not ask for credentials on every click. Each session has a session ID. If an attacker steals that ID, they can act as the user without knowing the password or passing MFA. Session settings reduce that risk by limiting how long a session lives and how it can be used.
Key session settings
Open Setup > Session Settings to see org-wide controls. Some can also be set per profile.
| Setting | Where | What it does |
|---|---|---|
| Timeout value | Session Settings or profile | Ends an idle session after a set time, such as 2 hours. |
| Lock sessions to the IP address from which they originated | Session Settings | Ends a session if the IP address changes mid-session. |
| Lock sessions to the domain in which they were first used | Session Settings | Blocks the session ID from being used on another domain. |
| Require secure connections (HTTPS) | Session Settings | Forces encrypted traffic. |
| Force relogin after Login-As-User | Session Settings | Makes an admin sign in again after acting as another user. |
A shorter timeout limits the window for a stolen session. It also makes users sign in more often, so choose a value that fits how people actually work.
Session security levels
Every authentication method gets a session security level. Salesforce uses two levels:
- Standard: the default for a normal username and password login.
- High Assurance: granted when the user passes a stronger check, such as MFA with a verification method.
Some features require High Assurance. Examples include connected apps set to require it, reports and dashboards you protect, and the ability to register a new verification method. If the current session is only Standard, Salesforce asks the user to verify with MFA before it allows access.
Setting the session level
In Session Settings, the Session Security Levels section lets you move each login method between Standard and High Assurance. Typical methods are Username and Password, Multi-Factor Authentication, and different SSO identity providers.
You can also set a High Assurance session required value on a profile, in the profile's Session Settings. Users with that profile must reach High Assurance to sign in at all. This is one way to force MFA for a group, though a permission set with the MFA permission is the more common approach covered in the enabling chapter.
Common errors
- Users are logged out when they switch networks. The IP lock is enabled. Mobile users and people on VPNs change addresses often, so consider turning the lock off and relying on other controls.
- Users see MFA prompts in the middle of work. A resource requires High Assurance and their session is Standard. This is expected behavior, not a fault.
- Setting a very long timeout. An unattended computer stays open to anyone nearby. Pick the shortest value users can tolerate.
- Forgetting SSO. For single sign-on, the identity provider decides how the user authenticated. Map its session level in Session Settings so Salesforce can trust it.
Exercise
A user signs in with only a password and then opens a report folder that requires High Assurance. What happens, and why?
Show answer
Salesforce sees that the session level is Standard, so it prompts the user to verify with MFA. After a successful verification the session is raised to High Assurance and the report opens. If verification fails, access is denied.
Exercise
Remote staff keep being signed out in the middle of the day while they move between home Wi-Fi and a mobile hotspot. Which session setting is the likely cause, and what is the trade-off of changing it?
Show answer
The setting that locks sessions to the originating IP address. Turning it off stops the forced sign-outs, but a stolen session ID could then be used from another IP address, so you rely more on timeouts, MFA, and login monitoring.