在ASP.NET中使用MachineKey [英] Uses for MachineKey in ASP.NET
本文介绍了在ASP.NET中使用MachineKey的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
机器键在asp.net中有什么不同的用法?
我认为以下是正确的,但认为可能有更多。
What different ways are Machine Keys useful in asp.net? I think the following are correct but thought there may be more.
- 多个应用程序可以使用相同的cookie
- 多个服务器可以使用相同的viewstate
推荐答案
MachineKey用于:
MachineKey is used for:
- ViewState加密和验证
- 表单验证(或联合身份验证)
在多个服务器上安装Web应用程序需要在所有服务器上配置相同的计算机密钥才能进行负载平衡
Having a Web App installed on multiple servers requires same Machine Key configured on all of them in order for Load Balancing to work.
要查看所有详情,请参阅: MSDN如何:在ASP.NET 2.0中配置MachineKey
To see all details, please refer to: MSDN How To: Configure MachineKey in ASP.NET 2.0
这篇关于在ASP.NET中使用MachineKey的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文