How do I solve an AntiForgeryToken exception that occurs after an iisreset in my ASP.Net MVC app?

后端 未结 6 734
不思量自难忘°
不思量自难忘° 2020-12-04 11:12

I’m having problems with the AntiForgeryToken in ASP.Net MVC. If I do an iisreset on my web server and a user continues with their session they get bounced to a login page.

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 11:24

    i had this issue and to fix what you need to do is add an explicit machine key in your web-config...

     
    

    ensure its placed in web.config within...

    
    

提交回复
热议问题