如何通过 AntiForgeryToken 传递给另一个动作?以下当然不起作用:
[ValidateAntiForgeryToken]
public ActionResult CheckSelection(string[] SelectedIds, int SessionId)
{
...
if (SomeCondition)
{
return RedirectToAction("Finish", "Session", new { SessionId = SessionId,
__RequestVerificationToken = Request.Params["__RequestVerificationToken"] });
}
....
}
谢谢你的帮助!