make the cookie name unique to the backend being served

This commit is contained in:
Richard Quintin 2017-06-07 11:04:06 -04:00 committed by Ludovic Fernandez
parent e007bb7546
commit a71d69cc3c

View file

@ -641,7 +641,7 @@ func (server *Server) loadConfig(configurations configs, globalConfiguration Glo
}
stickysession := configuration.Backends[frontend.Backend].LoadBalancer.Sticky
cookiename := "_TRAEFIK_BACKEND"
cookiename := "_TRAEFIK_BACKEND_" + frontend.Backend
var sticky *roundrobin.StickySession
if stickysession {