docs/documentation/platform/pam/concepts/session-lifecycle.mdx
When you connect to an account through PAM, a session is created. The session tracks who connected, when, for how long, and what they did. Here's what happens at each stage.
When you click Launch on an account from the My Access page (or run the CLI command), PAM checks:
If everything checks out, the session is approved and you can connect.
Once approved, the connection is established through the Gateway:
For Web Access, this all happens in the browser. For CLI Access, the CLI starts a local proxy and you connect your preferred client to localhost.
While you're connected:
You can see your active sessions on the Sessions page.
A session ends when:
exit)Recordings are available in real-time — you can review activity even while the session is still active.
Every session is logged:
Admins and Auditors can review sessions from the Sessions page. See Session Recording for details on how recordings work.