[問題] ASP.Net子目錄表單驗證

看板C_Sharp (C#)作者 (tomex_ou)時間21年前 (2004/03/06 20:35), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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)
文章代碼(AID): #10IZO2Gk (C_Sharp)
文章代碼(AID): #10IZO2Gk (C_Sharp)