i have implemented AntiForgeryToken in my form. it is working. now i want to invalidate from out side just for testing purpose because i need to see what will happen when AntiForgeryToken will be tamper ?
so guide me how to invalidate/tamper my AntiForgeryToken to see what exception will be generated. also guide me how to capture that exception from action method and redirect user to a another page with friendly message.
couple of question about AntiForgeryToken
1) i also like to know in details how AntiForgeryToken works ?
2) does AntiForgeryToken generate unique value for each request ? if yes then why ?
3) a web site may have many pages. so just guide me with few example of those page or form where AntiForgeryToken need to implemented ?
4) can i write multiple AntiForgeryToken in a same form....if not why? looking for good discussion.
thanks