We support session persistence (AKA sticky sessions) with a customizable TTL, defaulting to 15 minutes.
Key | Value | TTL | Examples |
---|---|---|---|
session | Any unique identifier of up to 255 characters (regardless of character encoding); Massive will make best efforts to route requests in the same session to the same egress node | Default: 15 minutes (customizable with sessionttl ) | session42, 1234 |
sessionttl | Customizable session TTL in minutes, up to 240 minutes | Default: 15 minutes | 30, 60, 120, 240 |
sessionttl
parameter up to 240 minutes (4 hours).Key | Value | Description |
---|---|---|
sessionmode | strict , flex | Controls session behavior on errors |
sessionerr
parameter.sessionmode
, which defaults to sessionmode-flex
:
sessionmode-flex
explicitly defined:
sessionmode-strict
:
Key | Value | Description | Default |
---|---|---|---|
sessionerr | Number (1-100) | Maximum consecutive errors before rotation in flex mode | 15 |
sessionerr
based on your tolerance for retries (default is 15)Advanced: Parameter Timing and Mutability
sessionttl
- TTL durationsessionmode
- Strict vs flex behaviorsessionerr
- Error limit for flex modesubdivision
, zipcode
, etc.)country
or city
parameters creates a NEW session with a different identity, breaking session continuity. These are part of the session token itself.country
and city
are part of the session’s unique identifier. Changing them creates an entirely different session:subaccount
- For billing and trackinghttpredirect
- For HTTP to HTTPS redirect behavior