简体   繁体   中英

Login Requirement for some page in my web site

i have question about authentication and login.

i have e-servcie to be used from pubice user's for job request , this e-service have 3 steps in 3 page and no need to login, so any one can access to this service from our website.

and as u know for each e-service their is application to manage the requset, this application have login and it's work ok.

i put this smiple code in web config:

    <authorization>
        <deny users = "?" />

     <allow users ="*" />

    </authorization>

with this code all the page redirect to login page even those related to e-service.

how could i keep e-service pages away from login check.

by the way i have 2 Master page: 1 for e-service and 1 for managment.

i use Asp.Net 4.0 with C#

Thanks

To keep a page out of login check, you should add:

<location path="yourpage.htm">
    <system.web>
      <authorization>
        <allow users="?" />
      </authorization>
    </system.web>
</location>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM