views:

160

answers:

2

Can somebody explain what ASPXAuth cookie does?

My website uses forms auth and I am trying to create a load balancer (hardware) rule which will keep track of sessions based on the aspxauth cookie. Is it safe assume that the value of the cookie is unique?

Thanks.

+2  A: 

The value of this cookie represents the encrypted username of the currently authenticated user. More about Forms Authentication in this article on MSDN.

Darin Dimitrov
+2  A: 

The easiest way to get authentication working in a load balanced environment is to enable sticky sessions. This places an extra cookie to all outgoing responses, such that subsequent requests will contain that cookie and the F5 will recognize the user session between page views and ensure they are routed to the same web server. The web server will not know any different.

spoulson
Nice, thanks for the direction. Just to clarify, we only need to change some configuration from the LB and that will create the stick sessions?
Emon
Precisely correct. We use F5 BigIP boxes where I work and they're really powerful (and expensive) machines.
spoulson