作者tomex (tomex_ou)
看板C_Sharp
标题[问题] ASP.Net子目录表单验证
时间Sat Mar 6 20:35:20 2004
ASP.Net网页安全认证,若不采用资料库,想用web.config来设定,有四种方式:
"Windows","Forms", "Passport" and "None"
其中,Forms是最简单的方式,找遍了google,顶多是下列的设定:
<authentication mode="Forms">
<forms name="cookieName" loginUrl="loginForcn.aspx" protection="All" timeout="
60" />
</authentication>
<authorization>
<allow users="user1" password="hello" />
<deny users="?" />
</authorization>
不过,我只想锁定App1下某个子目录Admin/而已,却一直无法做到!
请问大家都怎麽使用Forms(表单验证)子目录呢?
--
You're recommended to vist C_Sharp in PTT.
We are the C#, resistance is futile.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.183.211
※ 编辑: tomex 来自: 140.119.183.211 (03/06 21:00)