Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For example I setup multiple a record for a domain

Is it true that if one browser successfully establishes a connection to one of the ip's, it will stick with this ip until it no longer works?

And is the cookie and session setup still valid in case the user connects through another ip?

share|improve this question
I think it will stick with one IP until the DNS TTL expires.. – NickW May 2 '13 at 10:44

David Houde’s answer is correct. But I think there’s some confusion over how you have to manage cookies and sessions.

As long as the user keeps hitting, then the session data does not have to be available on or The browser will usually keep using the same IP. But there are a few instances where that will not be the case. For both load balancing and high availability, you need to ensure that the current session data is available on all nodes.

share|improve this answer

The majority of users will experience the same DNS resolution when interacting in a short period of time. The IP may change when the DNS Time To Live (TTL) expires.

Sessions are based off the domain, and not IP address. They will work regardless of the IP.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.