How to override/change FormsAuthentication LoginUrl in certain cases

前端 未结 3 581
孤城傲影
孤城傲影 2020-12-06 16:23

Is there a way to dynamically change the LoginUrl of FormsAuthentication? What I have is the whole site protected by FormsAuth, but for some pages in a sub folder, I\'d lik

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 17:09

    Each subfolder allows you to have a separate webconfig file. So you could put a web.config in your subfolder with the tags:

    
        
    
    

提交回复
热议问题