Sticky sessionGet sticky session

Session ID and lifetime

Control how long a sticky session stays active. Username flags on proxy.geonode.io (use a sticky port).

Auth

Use your Geonode proxy username and password with the proxy URL.

Username syntax

<geonode_username>-country-<COUNTRY>-session-<session_id>-lifetime-<minutes>:<geonode_password>

Lifetime (minutes)

ConstraintValue
Minimum3
Maximum1440 (24 hours)
Default10

Session ID

^[A-Za-z0-9_]{1,25}$ — letters, digits, underscore only.

Parameters

NameInRequiredDescription
sessionusername flagyesCustom session ID
lifetimeusername flagnoMinutes (3–1440)
portproxy URLyesSticky port (for example 10000)

Example

curl -x "http://proxy.geonode.io:10000" \
  --proxy-user "<geonode_username>-country-US-session-docsesslife01-lifetime-5:<geonode_password>" \
  "http://ip-api.com/json"

Response

Example (-session-docsesslife01-lifetime-5 on port 10000):

{
  "status": "success",
  "country": "United States",
  "countryCode": "US",
  "region": "MI",
  "regionName": "Michigan",
  "city": "Chesaning",
  "zip": "48616",
  "lat": 43.1847,
  "lon": -84.115,
  "timezone": "America/Detroit",
  "isp": "Hughes Network Systems, LLC",
  "org": "Hughes Network Systems, LLC",
  "as": "AS6621 Hughes Network Systems, LLC",
  "query": "184.52.10.140"
}

Lifetime itself is not returned in the ip-api body; the flag is accepted when the request succeeds.

Was this page helpful?

On this page