开发者

ASP.NET MVC Debugging Session not working

I've a MCV ASP.NET. It has authentication and authorization.

When ever I run t开发者_Python百科his application in debug mode, the application starts with user already logged in. It doesn't show Logon page.

Could anyone tell me how to fix this issue i.e. clear the session so that it prompts login credentials? I tried clearing cookies etc on IE and issue still exists.


are you sure it has forms authentication and not windows authentication? You can check by highlighting project name in solution explorer and press F4. Make sure that anonymous authentication is set to enabled, and Windows Authentication to Disabled.

If you indeed have forms authentication, you can have a link that invokes an action that calls FormsAuthentication.SignOut(); If you generate a basic "internet application" template, it is generated for you in account controller

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜