0

I have an MVC4 page that allows a logged in user to update various profile elements (username, password, cc#). I would like to use the AntiForgeryToken, but in that only a part of the page is updated when any given form is submitted, the tokens created for the other form elements are invalid after one of them is used. How can I make this work.

The error returned upon submitting a second form is:

"The provided anti-forgery token was meant for user "xxxxxxxxx-0gf5izjl-", but the current user is "xxxx-EjRYaQ7asdfV@test.com"

Thanks

sydneyos
  • 4,527
  • 6
  • 36
  • 53

0 Answers0