Take the 2-minute tour ×

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer


