具体如下:
<nwebsec>
<sessionSecurity xmlns="http://nwebsec.com/SessionSecurityConfig.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="NWebsecConfig/SessionSecurityConfig.xsd">
<sessionIDAuthentication enabled="true"
useMachineKey="false"
-----------------------> authenticationKey="64char hex string here"/>
</sessionSecurity>
</nwebsec>我的问题是:
发布于 2015-12-21 19:08:01
authenticationKey是使用machineKey的另一种选择,应该以类似的方式对待。也就是说,你应该在不同的环境中使用不同的密钥,你也应该保守密钥的秘密。
如果您已经为您的应用程序配置了machineKey,建议只使用它。添加authenticationKey是为了支持无法从配置中读取machineKey的场景。
https://stackoverflow.com/questions/34345866
复制相似问题