見Single sign-on with Forms Authentication
其實只要 web.config 設定相同即可,注意 machineKey 也要相同
<system.web>
<authentication mode="Forms">
<forms loginUrl="Secure\login.aspx"
protection="All"
requireSSL="true"
timeout="10"
name="FormsAuthCookie"
path="/FormsAuth"
slidingExpiration="true" />
</authentication>
<!-- The virtual directory root folder contains general pages.
Unauthenticated users can view them and they do not need
to be secured with SSL. -->
<authorization>
<allow users="*" /> <!-- Allow all users -->
</authorization>
<machineKey
validationKey="C50B…CABE"
decryptionKey= "8A9BE8FD67AF6979E7D20198CFEA50DD3D3799C77AF2B72F"
validation="SHA1"/>
</system.web>
沒有留言:
張貼留言