Friday, February 11, 2005

web farm and machine key

when using web farm, because same domain name is associated with several different physical servers, if the web application implements form authentication and encryption, web.config in web application should manually specify machine key, because the automatic generated machine key in different servers are different. If no machine key is specified, the different automatic generated key will cause problem when user first encrypt his password in server 1 and next login at server 2, and it will cause the "Bad Data" exception.

web farm and machine key

when using web farm, because same domain name is associated with several different physical servers, if the web application implements form authentication and encryption, web.config in web application should manually specify machine key, because the automatic generated machine key in different servers are different. If no machine key is specified, the different automatic generated key will cause problem when user first encrypt his password in server 1 and next login at server 2, and it will cause the "Bad Data" exception.