# Profiles and sessions (/browser-api/profiles-and-sessions)

## Profiles [#profiles]

A profile keeps cookies, localStorage, sessionStorage, and IndexedDB between sessions. Use one to stay logged in to a site or to keep a consistent identity.

- Select a profile with the `pid-<profileId>` modifier. The id is 64 hexadecimal characters, issued by the dashboard. See [Connection URL](/browser-api/connection-url).
- State is stored encrypted, up to 50 MB per profile. If a profile grows past 50 MB, the previous saved version stays and a `profile_too_large` event appears in the session timeline.
- One live session per profile at a time. A second connection gets `409 PROFILE_BUSY`.
- A signed id the server has not seen yet creates the profile on the first connection. A made-up id is refused with `400 INVALID_PROFILE_ID`.
- A browser account holds up to 1000 profiles and always keeps at least one. Beyond the limit, connecting with a new id gets `409 PROFILE_LIMIT_REACHED`.
- A profile can carry its own settings (such as country, proxy, and captcha). They sit between URL modifiers and account settings in the [priority order](/browser-api/connection-url#priority).

To create many profiles at once, use **Generate URLs** on the Profiles tab of the dashboard: up to 999 new profile URLs per batch, with the country and proxy chosen once per batch.

## Sessions [#sessions]

A session starts when a client connects and ends when the browser closes.

- Up to 10 browser accounts per user, and up to 5 concurrent sessions per account. The sixth gets `429 CONCURRENCY_LIMIT`.
- A session lasts at most 30 minutes; then the socket closes with code `4410` and reason `MAX_DURATION`.
- The largest WebSocket message is 8 MB.

Support can raise the limits for a user.

### Reconnect [#reconnect]

After the client disconnects, the browser stays alive for 60 more seconds. Name the session with `session-<id>` (1 to 64 letters, digits, or underscores), and connecting again with the same id within that time returns the **same browser and tabs**. See the [Quickstart](/browser-api/quickstart#reconnect-to-the-same-browser) for an example.

While one client is connected to a `session-<id>`, another client using the same id gets `409 SESSION_IN_USE`. After the 60 seconds, the browser is closed and the id can start a new one. If you do not name the session, a dropped connection cannot be resumed.

### Sticky exit address [#sticky-exit-address]

`ttl-<minutes>` (0 to 120) asks for the same exit IP for up to that many minutes. The provider may release the address earlier, and `ttl-0` or no `ttl` means no stickiness beyond the session itself. It applies to platform proxies and own nodes.

## Session timeline [#session-timeline]

The Sessions tab of the dashboard lists running and past sessions. Each session has a timeline of events, for example a `blocked` request or a `profile_too_large` warning.

- Events show **hosts only**, never paths or query strings.
- Events are kept for 30 days.
- **Kill** ends a running session; its socket closes with code `4410` and reason `KILLED`.
- **Live view** lets you watch a running session. You can take control with an explicit switch. The CDP URL and password are never passed to the Live view.