[問題] ASP.Net子目錄表單驗證
ASP.Net網頁安全認證,若不採用資料庫,想用web.config來設定,有四種方式:
"Windows","Forms", "Passport" and "None"
其中,Forms是最簡單的方式,找遍了google,頂多是下列的設定:
<authentication mode="Forms">
<forms name="cookieName" loginUrl="loginForm.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)
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章