Global Session Policy (Basic) in Okta

Global Session Policy (Basic) in Okta

A beginner-friendly guide to the Okta policy that decides how people prove who they are when they start a session, how long that session lasts, and when it ends, explained from the ground up with simple analogies, diagrams and real-world examples.

Think about a theme park that sells wristbands. When you arrive, a guard checks your ticket and snaps a wristband on your arm. For the rest of the day you can walk through gates by simply showing the band, without buying a ticket again. But the park has rules: a day-pass band stops working at closing time, a band that has not been used for hours might be cancelled, and a visitor who arrives through a back entrance might be asked to show extra proof. Okta works in a remarkably similar way. When a person signs in, Okta gives them a session, which is the digital wristband. The Global Session Policy is the rulebook that decides how that wristband is issued, how long it lasts and what happens when it is not used. In this guide we will unpack each of those ideas slowly, so that anyone, even a curious ten-year-old, can follow the story. The word “Basic” in the title simply means we are covering the fundamentals that every beginner should know.

1Why Sessions Exist

To understand the policy, first understand the problem it controls.

The annoyance of signing in again and again

Imagine a company where every employee uses thirty different applications each day: email, chat, calendar, HR tools, ticketing, finance and more. If a person had to type a password and approve a prompt for every single application, they would spend a large part of the day just signing in. People would get frustrated, choose weak passwords, and look for shortcuts. That would be bad for productivity and also bad for security.

Okta solves this by letting a person sign in once and then reuse that proof of identity for a period of time. When the person signs in successfully, Okta creates a session and remembers it, usually by placing a small piece of data called a cookie in the person’s web browser. When the person opens another application connected to Okta, the application sends them to Okta, Okta sees the cookie, recognises the session and says “yes, I already know this person, let them in”. This is the idea behind Single Sign-On.

Simple Analogy

A session is like the wristband at the theme park. You show your ticket once at the entrance, and after that every ride only needs a quick glance at the band. The band saves you from buying a new ticket for every ride, but it must stop working at some point or anyone who finds a dropped band could use it.

The danger of sessions that never end

A session is convenient, but it is also a risk. If a session lasted forever, a stolen laptop, a shared computer in a library or a forgotten browser tab could give a stranger access to everything the person can reach. Security teams therefore want sessions to end after a sensible time, and to end sooner when nobody is using them. They also want stronger proof from people who sign in from unusual places. The Global Session Policy is the tool in Okta that turns those wishes into settings.

1 sign-in
can open many connected applications
2 timers
control a session: maximum lifetime and idle time
Rules
decide who gets which settings, in a fixed order
i
Remember

A session is not the same as a password. The password proves who you are at the moment of signing in. The session is the memory Okta keeps afterwards so you do not have to prove it again every few seconds.

2What Is the Global Session Policy?

A short, clear definition before we add any detail.

The plain-language definition

The Global Session Policy in Okta is a set of rules that controls how a user signs in to Okta itself and how the resulting Okta session behaves. It answers questions such as these. Should this person be allowed to start a session at all? Which kind of proof must they give? Must they use a second factor such as a phone prompt? How long can the session last in total? How long can it sit idle before Okta ends it? Should the session survive when the browser is closed?

The word “global” matters. This policy applies to the Okta session as a whole, not to one particular application. Think of it as the main gate of the theme park. What happens at each individual ride is decided by a different set of rules, which we will compare later in this guide.

About the word “Basic”

“Basic” is not the name of a special setting or a separate product edition in the Global Session Policy. In this guide it means the foundation: the simple, essential ideas that you need before moving on to advanced designs. If your organisation uses the word in its own policy names, such as a rule called “Basic”, that is a label chosen by your administrators and you can read its settings like any other rule.

i
Tip

Okta lets administrators give each rule a descriptive name. When you meet a rule with an unfamiliar name, open it and read the conditions and settings. The name is only a label, and the settings are the truth.

flowchart TD
  A["Person tries to sign in to Okta"] --> B["Global Session Policy is consulted"]
  B --> C{"Which rule matches?"}
  C -->|Allow rule| D["Proof required, then session created"]
  C -->|Deny rule| E["Access denied"]
  D --> F["Session lifetime and idle timers start"]
        
FIG 1 — The Global Session Policy at the main gate

3Core Words You Need to Know

Every field has its own vocabulary. This is the small dictionary for the rest of the guide.

Term 1

Session

The period during which Okta remembers that a person has already proved who they are.

Term 2

Cookie

A small piece of data kept in the browser that lets Okta recognise an existing session.

Term 3

Policy

A container that holds an ordered list of rules. Policies are assigned to groups of people.

Term 4

Rule

A single entry inside a policy with conditions that decide who it applies to, and settings that decide what happens.

Term 5

Network Zone

A named set of network locations, such as the office network or a list of countries, used as a condition in rules.

Term 6

MFA

Multifactor authentication: proving identity with more than one kind of proof, such as a password plus a phone prompt.

Term 7

Idle Time

How long a session may sit unused before Okta ends it automatically.

Term 8

Session Lifetime

The maximum total time a session may live, no matter how busy the person is.

Policy, rule and priority

The relationship between policy and rule is worth fixing in your mind early. A policy is the folder, and rules are the pages inside it. Okta reads the rules from the top of the list to the bottom. As soon as it finds the first rule whose conditions match the person and their situation, it uses that rule and stops looking. This is why the order of rules matters so much.

“The policy is the rulebook, the rule is the page that applies to you, and the session is the wristband you get.”

4How Policies and Rules Are Evaluated

Okta follows a strict, repeatable routine every time someone signs in.

Step one: find the policy

Every organisation has a default Global Session Policy that applies to everyone who is not covered by a more specific policy. Administrators can create additional policies and assign each to particular groups of people, such as contractors or administrators. Okta checks the person’s group membership, finds the policy that applies, and moves on.

Step two: walk down the rules

Inside the chosen policy, Okta reads the rules in priority order. Each rule has conditions. Typical conditions include whether the person is inside or outside a certain network zone, whether they are signing in through Okta directly or through an external identity provider, and whether Okta considers the sign-in risky. Okta takes the first rule that matches and ignores the rest.

1

The person starts to sign in

Okta looks at who the person is, which groups they belong to and where the request comes from.

2

The right policy is picked

The most specific policy assigned to the person is chosen, otherwise the default policy is used.

3

Rules are checked from the top

The first rule whose conditions match is selected, and checking stops there.

4

The rule’s action is applied

The rule either allows the sign-in, with specific proof requirements and timers, or denies it.

5

The session is created

If access is allowed and the proof is satisfied, Okta creates the session and starts the lifetime and idle timers.

Simple Analogy

Imagine a row of signs at a stadium entrance: “VIP holders this way”, “Staff this way”, “Everyone else this way”. You walk down the row and follow the first sign that describes you. You do not keep reading the other signs. Okta’s rules work the same way, and the final “Everyone else” sign is the catch-all default rule.

!
Common Mistake

Placing a broad rule that applies to everyone above a narrow rule means the narrow rule is never reached. Always put the most specific rules at the top and the broad catch-all rule at the bottom.

5Conditions: Deciding Who a Rule Applies To

Conditions are the “if” part of every rule.

Each rule begins with conditions that describe the situation it is meant for. The more precise the conditions, the more tailored the experience. Here are the common ones in simple terms.

User group

Policies are assigned to groups of people, so a single policy can serve contractors while another serves full-time staff or administrators. This is the first level of targeting.

Network location

A rule can apply only when the sign-in comes from inside a defined network zone, or only when it comes from outside. A common pattern is lighter requirements on the office network and stronger requirements from unknown places.

Authentication source

A rule can distinguish whether the person signs in directly with Okta credentials or arrives through an external identity provider, for example from a partner organisation.

Risk level

Okta can estimate how risky a sign-in looks, based on signals such as unusual location or device. A rule can ask for stronger proof when the estimated risk is high. Which risk features are available depends on your Okta plan and engine.

A practical way to think about it

Try writing each rule as a sentence: “If the person is in this group, and is outside the office network, then require stronger proof and a shorter session.” If the sentence reads naturally, the rule is probably well designed. If the sentence is long and tangled, it is often better to split it into two simpler rules.

i
Keep conditions simple

Complicated conditions are hard to test and hard to explain to colleagues. A small number of clear rules is almost always easier to maintain than a large number of clever ones.

6Actions and Settings: What a Rule Can Do

The “then” part of every rule controls access and session behaviour.

Allow or deny

The first decision in a rule is whether it allows or denies access. A deny rule is a simple wall: anyone matching the conditions cannot sign in. For example, a company could deny access from a country where it has no staff or customers. An allow rule opens the door and then applies the remaining settings.

The proof required to start the session

An allow rule specifies what proof the person must provide. In the most common setup this means a password, and optionally a requirement for an additional factor. Newer Okta organisations, those running Okta Identity Engine, let administrators tie the session to whichever factors satisfy the application-level requirements, while older Classic Engine organisations present more explicit choices about primary factors and multifactor requirements. The exact wording in the console varies by engine and over time, so always read the labels shown on your own screen.

When to ask for a second factor again

A rule can control how often a person is challenged for MFA. One documented option is to challenge the person again only after an “MFA lifetime” has expired for the device. In that setup the second factor is remembered on the device for a chosen period, and it is enforced when a new session is created or when the person changes devices.

Setting 1

Access decision

Allow or deny for everyone matching the rule’s conditions.

Setting 2

Proof to establish the session

What kind of sign-in proof is needed, including whether a second factor is part of it.

Setting 3

MFA lifetime

How long a remembered second factor on a device is trusted before a fresh challenge.

Setting 4

Maximum session lifetime

The longest a session may live from the moment it begins.

Setting 5

Maximum idle time

How long the session may sit unused before it is expired automatically.

Setting 6

Persistent cookie

Whether the session continues after the browser is closed and reopened.

Simple Analogy

MFA lifetime is like a stamp on your hand at a concert that says “ID checked”. For the rest of the night you walk in and out without showing ID again. When the stamp wears off the next day, you are asked again. A longer stamp is more convenient and a shorter stamp is safer.

7The Two Timers: Lifetime and Idle Time

Understanding these two clocks is the heart of the policy.

Maximum Okta global session lifetime

This is the longest a session can last from the moment it starts, even if the person is working constantly. When the lifetime is reached, the person must sign in again. It acts like a hard limit, similar to a day pass that expires at midnight no matter how much fun you are having. Okta offers a choice of how this limit behaves, such as a fixed maximum duration, or settings related to whether the session persists across browser restarts.

Maximum Okta global session idle time

This is how long the session may sit with no activity before Okta ends it. If a person walks away from a computer and nobody touches it for longer than this time, the session expires. It works regardless of the maximum lifetime, so an idle session is cut short even when its total lifetime has not yet been reached. It protects against the forgotten laptop and the shared computer.

sequenceDiagram
  participant P as Person
  participant O as Okta
  P->>O: Sign in with required proof
  O-->>P: Session created
  Note over P,O: Lifetime timer and idle timer start
  P->>O: Opens another app, activity seen
  O-->>P: Idle timer restarts, lifetime keeps counting
  Note over P,O: Person leaves desk, no activity
  O-->>O: Idle limit reached, session expires
  P->>O: Next visit
  O-->>P: Asks to sign in again
        
FIG 2 — How the idle timer and lifetime timer behave during a session

How the two timers work together

The idle timer keeps restarting whenever Okta sees activity, while the lifetime timer simply keeps counting from the start. The session ends when either timer runs out first. This pairing is clever: it lets a busy person stay signed in comfortably through the day while still guaranteeing that nobody stays signed in forever, and that a walked-away session closes quickly.

SituationWhich timer ends the session
Person works nonstop all dayMaximum lifetime, when its limit is reached
Person leaves for lunch and does not returnIdle time, after the idle limit passes
Person works in short bursts with gapsWhichever limit is reached first
Person closes the browser and persistent cookies are offSession ends with the browser
!
Default values

Okta ships with default timer values, commonly a short idle time of a couple of hours and a maximum lifetime of about a day. Defaults can change between releases and may be adjusted by your administrators, so check the values in your own organisation rather than assuming.

i
Browser effects

Some individual browser settings, such as privacy modes or cookie clearing, can affect how long cookies survive and can override the intended behaviour of the session settings.

8Persistent Cookies and the Browser

What happens to a session when the browser closes is a choice you can make.

By default, many sessions live in a cookie that disappears when the browser is closed. This is called a session cookie. A persistent cookie is different: it is saved to the person’s device and survives closing and reopening the browser, remaining valid until the session expires according to the policy. Allowing persistent cookies makes life easier for people who open and close their browsers often, but it also means the session stays alive on that computer even when nobody is looking at it.

Advantages of persistence

  • People stay signed in after restarting the browser
  • Fewer sign-in prompts and less frustration
  • Well suited to managed company laptops
  • Still limited by lifetime and idle timers

Disadvantages / Trade-offs

  • A lost or shared device keeps an active session
  • Not suitable for public or shared computers
  • Browser settings may still interfere
Simple Analogy

A non-persistent session is like writing the visitor pass in pencil on a whiteboard that gets erased whenever you leave the room. A persistent one is like a pass printed on paper that you carry in your pocket until it expires. The paper pass is handy, but it can be lost.

A sensible split

Many organisations turn persistence on for rules that apply to trusted, managed devices and off for rules that apply to outside or untrusted situations. Because rules are checked in order, you can place the stricter rule above the more relaxed one so that risky sign-ins match first.

9Global Session Policy Versus Authentication Policy

These two are often confused, so let us separate them clearly.

Okta has more than one kind of policy. The Global Session Policy governs the Okta session as a whole. In Okta Identity Engine there is also an authentication policy (sometimes called an application sign-in policy) that governs the proof required to open each individual application. They work together in layers, a bit like an airport.

Simple Analogy

At an airport, the main security checkpoint decides whether you may enter the secure area at all and for how long your boarding pass is valid. That is the Global Session Policy. Then at each gate, an attendant may check again that you are on the right flight and may ask for passport proof for an international trip. That is the authentication policy for each application.

QuestionGlobal Session PolicyAuthentication Policy
What does it protect?The Okta session itselfAccess to a particular application
When is it used?When a session is created and while it livesWhen a person opens an application
Typical controlsAccess allow or deny, session lifetime, idle time, cookiesWhich factors are needed, how often to re-prove, device conditions
ScopeGlobal, across all applicationsPer application or per group of applications
flowchart LR
  A["Sign in to Okta"] --> B["Global Session Policy: may a session start, and for how long?"]
  B --> C["Session active"]
  C --> D["Open an application"]
  D --> E["Authentication Policy: what proof does this app need?"]
  E --> F["Access granted to app"]
        
FIG 3 — Two layers of policy working together
i
Rule of thumb

If the question is “how long should someone stay signed in to Okta?” think Global Session Policy. If the question is “how should we protect this particular application?” think authentication policy. The two layers combine, and the stricter requirement ends up protecting each application.

10Default Policy and the Catch-All Rule

Every organisation starts with a safety net.

Okta provides a default Global Session Policy with a default rule at the bottom, sometimes described as the “everyone” rule. It matches anyone who has not matched a higher rule, so nobody falls through a gap. The default policy is special: some of its conditions are locked, and administrators are limited in how much they can edit them. Typically the settings that can be adjusted on the default rule are the timers, such as maximum idle time and maximum lifetime, rather than the matching conditions themselves.

Why this design is good

A catch-all rule guarantees that every sign-in is handled by some rule. Without it, a person who matched no rule might get unpredictable results. Because the default rule cannot be removed or narrowed, there is always a predictable baseline.

Adding your own on top

The usual approach is to leave the default rule as the safe baseline and add more specific rules above it for special cases. Examples include a stricter rule for administrators, a rule that denies sign-ins from forbidden countries, and a rule that shortens sessions outside the office network.

!
Do not weaken the baseline carelessly

Because the default rule applies to everyone not matched elsewhere, setting its timers too long affects a very large number of people. Change it with care and after review.

11Admin Console Sessions

Administrators hold powerful access, so their sessions can be handled separately.

The Okta Admin Console, where administrators manage users, applications and policies, can have its own session lifetime settings that are independent of the global setting. This makes sense, because an administrator session is far more dangerous in the wrong hands than an ordinary session. A company might allow regular staff a working-day session but ask administrators to sign in more often, with a shorter limit on the Admin Console.

Shorter admin sessions

Configure the Admin Console session to expire sooner than ordinary sessions, so a forgotten admin browser tab cannot be abused for long.

Dedicated admin accounts

Use separate accounts for administration instead of everyday email and chat accounts, and put the admin accounts under a stricter policy.

i
Why separate

Keeping admin session settings separate lets you tighten the most sensitive access without making everyone else’s day harder.

12Designing a Simple, Sensible Policy

Here is a beginner-friendly plan you can adapt to your own organisation.

1

List who signs in and from where

Group your people: employees, contractors, administrators. Note where they sign in from, such as offices, homes or travel.

2

Define network zones

Create zones for trusted places, such as office networks, and for places you want to block.

3

Write rules from specific to broad

Start with deny rules for forbidden situations, then stricter rules for sensitive groups, then relaxed rules for trusted situations, and keep the default rule last.

4

Choose timers by risk

Use shorter lifetimes and idle times for riskier situations and longer ones for trusted managed devices.

5

Test with a small group

Try the policy with a few volunteers across different locations before assigning it widely.

6

Review regularly

Check the policy a few times a year, since offices, risks and tools change.

An example rule list in words

OrderRule ideaEffect
1Sign-ins from blocked countriesDeny access
2Administrators, anywhereRequire strong proof, short lifetime, short idle time
3Anyone outside the office networkRequire second factor, moderate lifetime, no persistence
4Everyone on the office networkNormal proof, longer lifetime, persistence allowed
5Default rule for everyone elseSafe baseline timers

13Security, Monitoring and Troubleshooting

A policy is only useful if you can see its effects and fix problems quickly.

Security thinking

Session settings are a balance between safety and convenience. Shorter timers reduce the window in which a stolen or forgotten session can be abused, but they can annoy people if set too aggressively. Stronger proof for risky situations reduces the chance that an attacker who has a stolen password can start a session. Denying access from places you never expect sign-ins is a cheap and effective control.

Control 1

Shorter timers for admins

Limit how long powerful sessions can live.

Control 2

Require MFA

Add a second proof so a stolen password alone is not enough.

Control 3

Use network zones

Apply stronger or weaker rules depending on where sign-ins come from.

Control 4

Limit persistence

Avoid persistent cookies where devices are shared or unmanaged.

Where to look when something seems wrong

Okta records sign-in and session events in its System Log. When a person says “I keep getting signed out” or “I was not asked for my second factor”, an administrator can search the log for that person’s recent events and see which policy and rule were evaluated, and what the outcome was. This is the fastest way to turn a vague complaint into a precise answer.

SymptomLikely causeWhat to check
Signed out too oftenShort idle time or lifetime, or non-persistent cookieThe matched rule’s timers and persistence setting
Never asked for second factorAn earlier rule matched, or MFA lifetime still validRule order and MFA lifetime on the device
Blocked unexpectedlyA deny rule matched the location or conditionNetwork zones and the deny rule’s conditions
Rule seems ignoredA broader rule above it matched firstPriority order of the rules
Behaviour differs between browsersBrowser cookie or privacy settingsBrowser settings and extensions
i
Numbers worth watching

Track the number of sign-in failures, the number of denied sign-ins and how often people are prompted for a second factor. Sudden changes often point to a misordered rule or an attack.

14Best Practices, Anti-Patterns and Real-World Examples

Lessons from organisations that have walked this road before.

Good habits

  • Order rules from most specific to least specific, with the default rule last.
  • Give every rule a clear, descriptive name that explains its purpose.
  • Use shorter sessions for administrators and for sign-ins from unfamiliar locations.
  • Test every change with a pilot group before applying it broadly.
  • Document why each rule exists so future administrators understand it.
  • Review policies on a schedule and after any major change such as a new office or merger.

Traps to avoid

ANTI-PATTERN-01 Avoid
Problem

Setting very long lifetimes and idle times for everyone to stop people complaining about sign-ins.

Why It’s Harmful

Stolen, lost or forgotten sessions stay usable for a long time, widening the opportunity for misuse.

Correct Approach

Match timers to risk: longer for trusted managed devices, shorter for riskier situations and administrators.

ANTI-PATTERN-02 Avoid
Problem

Putting a broad rule above specific ones, so the specific rules never apply.

Why It’s Harmful

Sensitive groups silently receive weaker settings than intended, and nobody notices until an incident.

Correct Approach

Review the priority order and place narrow rules first, the catch-all last.

ANTI-PATTERN-03 Avoid
Problem

Changing the live policy without testing, especially deny rules.

Why It’s Harmful

A mistake can lock out many people, including administrators, causing outages and urgent recovery work.

Correct Approach

Pilot with a small group, keep a recovery path for administrators and change one thing at a time.

Real-world pictures

A bank protecting staff sessions

A bank uses short idle times for branch staff on shared counters, requires a second factor from outside the branch network and denies sign-ins from countries where it has no business.

A software company with remote engineers

Engineers on managed laptops get comfortable longer sessions with persistence, while contractors on personal devices get shorter sessions and no persistence.

A hospital with shared workstations

Shared computers use very short idle times so a nurse who walks away does not leave patient systems open, and persistence is turned off on those machines.

A university with students and staff

Students get a moderate session policy, staff get a stricter one, and administrators get the strictest rules with short Admin Console sessions.

15Frequently Asked Questions

Short answers to the questions beginners ask most often.

Q1Is “Global Session Policy (Basic)” a special edition of the policy?

No. Okta does not offer a separate “Basic” edition of the Global Session Policy. The word is best read as “the fundamentals”, or as a label an administrator may have used for a rule.

Q2Does the Global Session Policy protect individual applications?

Not directly. It controls the Okta session. Per-application protection is the job of authentication policies, and the two work together in layers.

Q3What is the difference between session lifetime and idle time?

Lifetime is the maximum total time a session may exist. Idle time is how long it may sit unused. Whichever is reached first ends the session.

Q4Which rule does Okta use if several could match?

The first matching rule in priority order. After it matches, Okta stops checking the remaining rules.

Q5Can I delete the default rule?

No. The default policy and its default rule act as the safety net, and only some settings, mainly the timers, can be edited on it.

Q6Why was someone signed out even though they were working?

They may have reached the maximum session lifetime, which ends the session even for busy people. Browser privacy settings can also remove cookies early.

Q7Does a persistent cookie mean the session never ends?

No. A persistent cookie survives closing the browser, but the session still expires according to the lifetime and idle settings of the matched rule.

Q8Can administrators have shorter sessions than everyone else?

Yes. The Admin Console session lifetime can be set independently, and a stricter policy can also be assigned to administrator groups.

Q9Where do I see why a particular sign-in was handled a certain way?

In the Okta System Log, which records sign-in and session events and helps you see which rule applied.

Q10How should I test a change safely?

Apply it to a small pilot group first, verify the behaviour from different locations, keep an administrator recovery path and only then widen the audience.

16Summary and Key Takeaways

We started at a theme park with a wristband and ended with a clear picture of how Okta handles sessions. The Global Session Policy is the rulebook for the Okta session: it decides whether a sign-in is allowed, what proof is needed, how long the session can live, how long it may sit idle and whether it survives a browser restart. Rules inside a policy are checked from top to bottom, the first match wins, and a default rule at the bottom keeps everyone covered. Used together with application-level authentication policies, it gives a layered, sensible balance between safety and convenience. Keep the design simple, order the rules carefully, tune timers to risk, and test before you roll out.

Key Takeaways

  • It governs the Okta session — the Global Session Policy controls how sessions start, how long they last and when they end, across all applications.
  • “Basic” is not an edition — it simply means fundamentals here, and any rule named “Basic” is just a label chosen by an administrator.
  • First matching rule wins — order rules from most specific to broadest, with the default catch-all rule last.
  • Two timers do the work — maximum lifetime caps total session length, and maximum idle time ends unused sessions, whichever comes first.
  • Persistence is a trade-off — persistent cookies add convenience but should be avoided on shared or unmanaged devices.
  • It works in layers — the Global Session Policy guards the Okta session, while authentication policies guard each application.
  • Test and monitor — pilot changes with a small group and use the System Log to understand how rules behave in practice.