I have implemented antiforgery token on my login page.
Now I had one user pressing back key on the keyboard, and when they click on login button again after filling their credentials, they get error page.
Is there some better way of handeling this case like redirect them to fresh login page?
Page that is login page is :/account/logon
If login details are sucessfull the user is redirected to :Home/Index page on which the user pressed button back.
My solution to this was:
Reload a page if it hits login page again. this will ensure fresh loading of antiforgery token
and all is done