简体   繁体   中英

Anonymous access to aspx for some users

我有一个ASP网站。我有一个仅对登录用户可见的页面。我的问题是我需要在未登录的情况下将此页面显示给其他人。想要使其匿名,如何实现此目的?

创建一个访客帐户,并在匿名用户访问特定页面时自动将匿名用户登录到该访客帐户。

You can use this code in you web.config file to show some file without loging.

<location path="yourpage.aspx">
   <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

It will allow for anonymous access.

Some links

  1. Allow anonymous authentication for a single folder in web.config?

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