ASP.FormsAuthentication - having two login pages

I have two different login pages for two different sections of my site. I would like to declare two sets of defaultUrls and loginUrls for each page / login section. Is it possible? Does anyone have sample code to do this?

I save both sections with similar code in the web.config files in each sections folder. Theoretically, I would like to add to this configuration file where you need to enter this section.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.web>
    <authorization>
      <allow roles="Administrator"/>
      <deny users="*" />
    </authorization>
  </system.web>
</configuration>
+3
source share
2 answers

I'm not sure if this is what you are looking for, but check out this post.

0
source

, , IIS .

0

Source: https://habr.com/ru/post/1720500/


All Articles