How to Set Up a Sticky Session for a Residential Proxy
A sticky session keeps the same exit address for a period of time. Learn when to use one, how a typical setup works, how to verify it and how to handle expiry.
9 min readUpdated Nov 11, 2026By XPASS Editorial Team

Some tasks work best when every request looks like it comes from the same place. Logging in to your own account on a site and then performing several steps, moving through a multi-page checkout on your own shop to test it, or comparing how a page behaves across a short browsing session all rely on a stable identity. If the exit address changes between steps, the site may treat each request as a new visitor, ask you to start over or show inconsistent results.
A sticky session is the usual answer. It asks the proxy to keep using one exit address for a set period. This guide explains what that means, how a typical setup works in general terms, how to test that it holds, and what to do when it ends. Because providers use different formats, it does not give exact syntax. Always follow the instructions on your plan page or dashboard. For help choosing how long a session should last, read the article on 5-minute versus 60-minute sticky sessions.
What a sticky session is
A residential proxy normally has two ways of choosing an exit address.
- Rotating. Each request, or each new connection, can leave from a different address. This is useful for independent, one-off page views.
- Sticky. The proxy keeps using the same address for a defined period, so that consecutive requests share an identity.
A sticky session does not freeze an address forever. It holds the address for up to a duration, and the address can be released when the time is up or when the underlying connection is no longer available. The key idea is continuity for a short, defined window.
In practice, the proxy needs some way to know that two requests belong together. Providers commonly do this with a session identifier that you choose and include in your connection details, so all requests that carry the same identifier are routed to the same exit address while the session lasts. The exact name, position and format of that identifier differ between providers, which is why you should take it from the documentation.

When you need one
Use a sticky session when the task has more than one step that depends on consistency.
- Signed-in flows on your own account, where the site ties the login to the address and might ask for verification if it changes.
- Multi-step forms and checkouts on a site you own or are authorised to test.
- Paginated browsing where the site tracks your place in a sequence.
- Short tests where you want to compare a page across a few loads without the address changing between them.
- Debugging a problem that appears only for a specific address.
You do not need one for independent requests. If you are loading unrelated pages and each load stands alone, rotation is fine and often simpler.
Before you start
A few preparations save time.
- Confirm the task is allowed. Make sure you are authorised to use the site this way and that your use respects its terms of use, robots.txt and rate limits.
- Check your plan. Find out whether sticky sessions are available and what options exist, such as the maximum duration and any location choices.
- Gather your connection details. Keep your host, port and credentials ready and private.
- Decide the duration. Choose a session length that covers the whole task with some margin, but not much longer than needed.
- Prepare your tool. Know how your browser, script or application accepts proxy settings and credentials.
Step-by-step setup
The details vary, but a typical setup follows the same pattern.
Step 1: Open the provider's instructions
Find the section of the dashboard or documentation that explains sessions. It will show how to request a sticky session and how to choose an identifier and a duration. Use the exact format shown there.
Step 2: Create a session identifier
Choose a unique identifier for each logical task. Something readable such as the date and a short job name works well. Use a new identifier when you want a new address, and reuse the same identifier when you want to keep the one you have. Avoid putting personal details in the identifier.
Step 3: Add it to your connection details
Enter the proxy host and port in your tool, then include the identifier and any location or duration options in the place the provider specifies. Many tools offer a single field for the proxy address and separate fields for the user name and password. Follow your provider's description of how to combine them.
Step 4: Configure your tool to keep connections together
If your tool opens a fresh connection for every request, check that it still sends the same identifier each time. Reusing a connection can also help consistency and reduces repeated handshakes. If you are using a browser, make sure a single profile carries the entire task, rather than switching profiles part-way.
Step 5: Test the session
Before you run the real task, check that the address is stable.
- Send a request to an address-checking page and note the address.
- Send two or three more requests with the same identifier and compare.
- Change the identifier and confirm that you get a different address, which proves that the identifier controls the behaviour.
- Wait a little and try again to see how the session behaves over time.
Record the results. This quick test tells you whether the setup is correct before you spend more traffic.
Step 6: Run the task and watch the results
Run the task and log what happens at each step. Watch for errors, redirects to verification pages or unexpected changes in content. These can be early signs that the address changed or that the site is unhappy with the pattern of requests.
Step 7: Handle the end of the session
Plan what happens when the time is up. Save any state you need, close the task cleanly and, if you need to continue, start a new session with a new identifier. Do not try to keep a session alive by sending pointless requests, and do not assume it will last longer than the stated duration.
A plain example
Imagine you run a small online shop and want to test the checkout flow as a visitor from another region, using the proxy to see what that visitor sees.
- You decide that the test needs about ten minutes, covering a product page, the cart, the delivery step and the payment page, stopping before any payment.
- You check your plan, find that sticky sessions are supported, and choose a duration that covers ten minutes with some margin.
- You create an identifier such as "checkout-test-region-a-1" and enter it in the place the provider's instructions describe.
- You test the session by loading an address-checking page three times and confirm the address stays the same, then change the identifier and confirm it changes.
- You run the checkout walk-through in a clean browser profile and capture screenshots of each step.
- You notice that the shipping message is wrong for that region and pass it to your developer.
- Afterwards you stop the session and keep a note of the identifier, the time and the traffic used.
The test used a small amount of data, stayed on your own site and did not touch payment. Keeping notes helps you plan later checks, as described in the guide to counting traffic.
Troubleshooting
| Symptom | Possible cause | What to try |
|---|---|---|
| Address changes between requests | Identifier missing or different on some requests | Check that every request carries the same identifier |
| Address changes after some minutes | Session reached its duration, or the address became unavailable | Choose a longer duration if available, or restart the task with a new session |
| Site asks for verification | Address changed, or the pattern looks unusual | Slow down, start again from a clean profile, and use a new session |
| Authentication errors | Wrong format for the credentials or identifier | Re-read the provider's instructions and copy the format exactly |
| Different content than expected | Cookies, language or device profile differ | Fix those variables and repeat |
| Slow responses | Distance, load on the residential connection or heavy pages | Retry later, reduce page weight, or test a different session |
Limits and what to watch for
- Sticky does not mean permanent. A session holds an address for up to a duration, and a residential address can disappear sooner. Always be ready to recover.
- Do not abuse a stable identity. A consistent address is for tasks that need continuity, not for hammering a site. Keep your request rate polite.
- Respect the rules. Follow each site's terms, robots.txt and rate limits and local law. A proxy does not make a prohibited activity allowed.
- Protect your credentials and identifiers. Anyone with your connection details can use your data.
- Watch your traffic. Long sessions that load heavy pages can use a lot of data. Measure and cap your usage, and read how your plan counts it.
- Keep sessions tidy. One identifier per task keeps results clear. Reusing one identifier across unrelated tasks can cause confusing behaviour.
- Check what is included. Duration options and locations depend on the plan, so confirm them on the product page rather than assuming.
- Plan for balances. If your plan keeps unused data, the article on traffic that does not expire covers what to check.
- Test at a quiet pace first. Run the first few sessions slowly, with a small number of requests, and look at the logs. It is much easier to fix a wrong identifier or a missing setting when you have made ten requests than when you have made ten thousand.
- Keep a short runbook. Write down the steps, the format you use and the checks you perform, so that a colleague can repeat the setup and you can spot what changed if something stops working later.
Summary
A sticky session keeps the same exit address for a limited period so that a multi-step task has a consistent identity. To set one up, confirm that your plan supports it, take the exact format from the provider's instructions, choose a unique identifier for each task, add it to your connection details, and test that the address stays the same and changes when you change the identifier. Run the task, watch the results, and be ready for the session to end earlier than planned. Keep your use lawful and polite, protect your credentials and monitor your traffic.
When you are ready to see which session options a plan offers, the proxy page lists them for you to compare.
Frequently asked questions
What is a sticky session on a residential proxy?
It is a way of asking the proxy to keep using the same exit address for a period of time, instead of switching to a new address on every request. It is useful for tasks that need a consistent identity across several steps, such as a multi-page flow.
How do I turn on a sticky session?
The method depends on the provider. It is usually controlled through a setting or an identifier that you add to your connection details, and the exact format is shown in the provider's documentation or dashboard. Follow the instructions for your plan instead of guessing a format.
How can I check that the session is really sticky?
Make several requests in a row through the same session identifier to an address-checking page and compare the reported address each time. If it stays the same, the session holds. Repeat after a pause to see how long it lasts.
What happens when a sticky session ends?
Your next request may leave from a different address. Plan for this by saving state, handling errors and being ready to start a new session. Do not assume an address will last longer than the duration the plan states.
Does a sticky session guarantee that the address will never change?
No. A residential address belongs to a real network and can become unavailable earlier than planned. Treat the duration as a maximum, and build your task so that it recovers if the address changes.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a proxy for this?
XPASS Proxy sells residential proxy traffic by the gigabyte, with the price shown before you pay.
See proxy plansKeep reading

Proxy Guides
Non-Expiring Residential Proxy Traffic: Pros and Things to Check
Traffic that does not expire removes the pressure to use it before a deadline. This guide weighs the benefits against the points worth checking before you buy.
9 min read

Proxy Guides
Sticky Session: 5 Minutes or 60 Minutes, Which Should You Choose?
A sticky session keeps the same exit IP for a set time. This guide shows how to match a short or long session to your workflow and what to watch for.
9 min read

Proxy Guides
How Residential Proxy Traffic Counts Download and Upload
Residential proxy traffic is billed by data, but what exactly counts? This guide explains downloads, uploads, overhead and retries, and how to estimate your own usage.
9 min read