Morpho Browser Morpho Browser

proxiessticky sessionsrotating proxiesresidential proxies

Sticky Sessions vs Rotating Proxies, Explained

How rotating proxies and sticky sessions work, what happens when a session expires, and which one to use for signed-in accounts vs anonymous tasks.

By Morpho team Published 6 min read

Here's a pattern we see in support messages. Someone buys a residential proxy plan, pastes the gateway address into a profile, signs in to an account, and gets asked to verify their identity twice in ten minutes. The proxy "works". The test passes. What's happening is that every new connection leaves from a different home in a different city, and the site watches the account hop around.

The fix is usually one setting: a sticky session. This post explains what's going on underneath, so you can choose deliberately instead of by trial and error.

How a rotating proxy works

With most residential plans you don't get a list of IPs. You get one gateway, something like gate.provider.example:7000, plus a username and password. Behind that gateway sits a pool of thousands or millions of real connections.

Every time your browser opens a new connection through the gateway, the provider picks an exit from the pool. A single page load can open several connections, so in pure rotating mode one page might be fetched from three different IPs. For scraping public pages, that's the point. For an account you're signed in to, it's a mess.

How a sticky session works

Providers let you pin an exit by putting a session id in the username. The exact syntax varies by provider, but it often looks like this:

customer-user1-session-a8f31c-sesstime-30:[email protected]:7000

As long as you keep sending the same session id, the gateway tries to route you through the same exit. Change the id and you get a new exit. Many providers also accept a lifetime parameter, after which the session is released and the next connection gets a fresh IP.

Two things to understand about this:

  • The lifetime is the provider's promise, not yours. If the home connection behind your exit goes offline (someone turns off their router), you'll get a new IP early. No setting on your side prevents that.
  • Sticky is not static. A sticky session borrows an IP for a while. A static or ISP proxy gives you an IP to keep. For an account you run every day for years, that difference adds up.

What a site sees in each case

Picture "Store 1" working for an hour on each type.

Rotating (no session)Sticky, 10 minSticky, 24 hStatic
IPs seen in one hourDozensAbout 611
Cities seenManySeveral11
IPs seen in one monthHundredsHundreds~301

The last row matters. Even a 24-hour sticky session gives the account a new IP every day. Sites see that as "this person's home connection changes daily". It's better than hopping every minute, but it isn't the same as a fixed IP. That's why we keep recommending static residential for accounts that matter, and sticky sessions as the fallback.

When to use which

Use rotating (no session) for:

  • reading public pages where the site's terms allow automated access,
  • checking how a page looks from many locations,
  • anything where no account is signed in and no state needs to survive between requests.

Use a sticky session for:

  • signed-in accounts when you can't get a static IP in the right country,
  • multi-step flows like a checkout test, where the site expects one visitor from start to finish,
  • cookie warm-up runs, so the cookies a profile collects come from one coherent visit.

Use static or a dedicated mobile proxy for:

Setting sticky sessions in Morpho

You don't have to edit usernames by hand. When you add a proxy whose username contains a session id in a format Morpho recognises, the proxy's row on the Proxies page shows a sticky session box.

  1. Tick sticky session. The same session id now means the same exit IP, until the provider's lifetime ends.
  2. Set the session lifetime. If the provider supports it, choose between 5 minutes and 24 hours. For signed-in work, go long.
  3. Need a new IP on purpose? Press New session. You get a new session id and therefore a new exit. Profiles that are open pick up the new IP once you close and reopen them.
  4. Untick it and the IP can change on every connection again.

If your provider sent the proxies in an odd format, such as a curl command, a spreadsheet or a port range, the Provider wizard reads it and shows the session column in its preview before importing. Formats are listed in the proxies chapter of the guide.

People mix these up because both "change the IP".

  • A session id belongs to rotating pools. New session = new exit from the pool. Other customers aren't affected.
  • An IP change link belongs to mobile proxies. Calling it tells the modem to reconnect and get a new IP from the carrier. Everyone using that modem gets the new IP.

In Morpho, a proxy with an IP change link gets a Change IP button that shows old IP → new IP afterwards. We cover that workflow in How to rotate mobile proxy IPs without breaking your sessions.

Watching for changes you didn't make

Even with a long sticky session, exits drop out. If you keep profiles open for hours, turn on Connection watch on the Proxies page. It re-tests the proxies of open profiles at an interval you choose (every 2 to 60 minutes). If the exit IP or country changes, you get a notification and the profile row shows an IP changed badge. Changes you made yourself, through New session or Change IP, don't trigger it.

When it fires, the sensible move is to pause, reload, and check the new country before continuing in an account. A short break is cheaper than a burst of activity from a surprise location.

Time zone and language follow along

One side effect of a new exit IP: the location can change too. In Morpho, a profile's time zone, language and geolocation are set from the exit IP when the profile starts, if you leave them on automatic. So after a new session, close and reopen the profile and everything lines up again. If you'd typed a fixed time zone by hand, a new exit in another region would contradict it. More in Why timezone and language mismatches get accounts flagged.

Common mistakes

  • Using the gateway without a session for logins. The most common cause of repeated verification prompts.
  • Short lifetimes "for safety". A 1-minute session on a signed-in account isn't safer. It's noisier.
  • Sharing one session id across profiles. Same id, same exit, and now two accounts share an IP. Morpho's conflict badge will flag the shared exit IP.
  • Assuming sticky means forever. Plan for an occasional unexpected change, and let Connection watch tell you when it happens.

The honest limit

A sticky session reduces how often your IP changes. It doesn't change what kind of IP it is, and it can't promise that a residential exit will stay online. For anything long-lived, a fixed IP remains the calmer choice.

If you'd like to try both modes side by side, the free plan's 10 profiles are enough. Get Morpho from the download page.

Frequently asked questions

Is a sticky session the same as a static proxy?

No. A sticky session holds one IP from a rotating pool for a limited time, set by the provider. A static proxy is one IP that stays yours for as long as you pay. When the sticky lifetime ends, you get a different IP.

How long should a sticky session last?

For signed-in work, as long as your provider allows and at least longer than your working session. If you work on an account for two hours, a 10-minute lifetime means several IP changes in the middle of it.

Why did my IP change even though sticky session is on?

Either the session lifetime ran out, or the device behind that IP went offline and the provider gave you another one. Residential pools are made of real connections, and those come and go.

Do I need sticky sessions for a mobile proxy?

Usually not. A dedicated mobile proxy keeps its IP until you or the carrier changes it. You control that with the IP change link. Sticky sessions apply to rotating pools with session ids.

More from the blog