what is the machine key in webconfig file in webconfig file .

Posted by Saigeetha under ASP.NET on 8/7/2010 | Views : 24292 | Status : [Member] | Replies : 2
Hi Friends

I watched forms authentication videos from dotnet funda . The tuetor said machine key in webconfig file , what is the machine key in the webconfig file.

Can any one explain .

Thanks,
saigeetha




Responses

Posted by: Syedshakeer on: 8/8/2010 [Member] Starter

Up
0
Down
Hi,
Check this link,you will get more information about MachineKey
http://msdn.microsoft.com/en-us/library/ff649308.aspx

Syed Shakeer Hussain

Saigeetha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Poster on: 8/8/2010 [Member] Starter

Up
0
Down
I hope you are talking about this video http://www.dotnetfunda.com/tutorials/videos/x71-single-signon-using-forms-authentication-in-aspnet-.aspx.

Machine key a unique key that differentiates one computer from others. And this key is used to create unique identifier when cookie is created in the client machine from a server side code. This key is generally present in the machine.config file when you install .NET framework that is generally not visible to the user as it remains in the .NET Framework installation directory. When you specify the same key in your web.config, the value of machine key specified in the machine.config is overridden by the one you have specified in the web.config file.

In this video, the tutor is explaining about the single sign on, that is only possible when your machine key is same for all your server so that the cookie created by one server is validated by other server as well. Thats why tutor has kept both web.config machine key same.

Hope this explanations will help you to understand Single sign on completely.

Thanks and keep asking.

Saigeetha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response